This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Set the Time and Date on a File or Directory Flash File System

Always I read 12:00:00 1/1/1980 using ffind.
I did not find a function fs_set_time or fs_set_date, somebody know how can I set the date, time , timestamp,etc... when I use fs_arm_l.lib with lpc2468?

Parents
  • Hi,
    there are functions fs_get_time and fs_get_date in fs_time.c which retrieve the current time/date for use in the flashFS.
    It is called by get_date in fs_fat.c which should set the right time/date in the FAT.

    Attention: You have to implement the functions fs_get_time and fs_get_date. By default there are just dummy implementations, which return a constant time/date.

Reply
  • Hi,
    there are functions fs_get_time and fs_get_date in fs_time.c which retrieve the current time/date for use in the flashFS.
    It is called by get_date in fs_fat.c which should set the right time/date in the FAT.

    Attention: You have to implement the functions fs_get_time and fs_get_date. By default there are just dummy implementations, which return a constant time/date.

Children