RL-ARM User's Guide

File Time Support Routines

File time support routines return the current date and time, and can be used to set the file timestamp. The routines are not reentrant.

RoutineFile SystemDescription
fs_get_dateFATReturns the date.
fs_get_timeFATReturns 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.