Keil Logo

File Time Support Routines

File time support routines return the current date and time, and can be used to set the file timestamp. The file timestamp information is available in devices with the FAT file system, it is not supported for non-FAT volumes.

Routine File System Description
fs_get_date FAT Returns the date.
fs_get_time FAT Returns the time.

By default, the routines return a fixed time and date. To overwrite the default behaviour, the developer must:

  1. Create a file named fs_time.c.
  2. Provide the code for both routines in that file.
  3. Add the file to the project.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.