Giter Club home page Giter Club logo

Comments (3)

djuseeq avatar djuseeq commented on September 11, 2024

Hi Charles.
I'm glad you can use it, thanks for the star. The default date/time it should be 2004-jan-1, 0h.0m.0s . What is the process during creating the RTCLOG.TXT file? First create and save the file,after set the file name again and open it, using the setYear, setMonth ... functions set the actual date/time, after call saveFileAttrb function and finally close the file. Actually with these functions you change the file "last modified time and date" attributes. Maybe i will add a possibility to choose between create and modified date attributes to change.

from ch376msc.

gcharles81 avatar gcharles81 commented on September 11, 2024

Hello Thanks for the Answer , so the solution to that is to use the below functions at startup and always update those with Today`s date ? I have RTC so I can keep thoose updated or I have to update before editing any file ?

      flashDrive.setYear(2019);
      flashDrive.setMonth(12);
      flashDrive.setDay(19);
      flashDrive.setHour(03);
      flashDrive.setMinute(38);
      flashDrive.setSecond(42);

from ch376msc.

djuseeq avatar djuseeq commented on September 11, 2024

If the file doesn't exist on the drive then first you create it, if there is some data then write it, close the file with this you will create the file on the drive
setFileName(FILENAME); openFile(); writeFile(data, length); closeFile(); this will create the file with the default date 2004-jan-1, 0h.0m.0s
and then open again the file and modify the date
setFileName(FILENAME); openFile(); get the date/time from RTC and use the set functions ; saveFileAttrb(); after these you can close the file or continue to add a next line of data and close it afterwards moveCursor(CURSOREND); writeFile(data, length); closeFile();

from ch376msc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.