C
int SetClockVars( unsigned int year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minute, unsigned char second );
Description
Lets the user manually set the timing variables. The values passed in will be converted to the format used by the FAT timestamps.
Preconditions
USERDEFINEDCLOCK macro defined in FSconfig.h.
Parameters
Parameters |
Description |
year |
The year (1980-2107) |
month |
The month (1-12) |
day |
The day of the month (1-31) |
hour |
The hour (0-23) |
minute |
The minute (0-59) |
second |
The second (0-59) |
Side Effects
Modifies global timing variables
Remarks
Call this before creating a file or directory (set create time) and before closing a file (set last access time, last modified time)