Mikroelektronika MIKROE-742 데이터 시트
Mmc_Fat_Set_File_Date
282
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Mmc_Fat_Set_File_Date(year: word; month: byte; day:
byte; hours: byte; mins: byte; seconds: byte);
byte; hours: byte; mins: byte; seconds: byte);
Returns
Nothing.
Description
Sets the date/time stamp. Any subsequent file writing operation will write this
stamp to the currently assigned file's time/date attributs.
stamp to the currently assigned file's time/date attributs.
Parameters:
-
year
: year attribute. Valid values: 1980-2107
-
month
: month attribute. Valid values: 1-12
-
day
: day attribute. Valid values: 1-31
-
hours
: hours attribute. Valid values: 0-23
-
mins
: minutes attribute. Valid values: 0-59
-
seconds
: seconds attribute. Valid values: 0-59
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
The file must be opened for writing. See Mmc_Fat_Rewrite or
Mmc_Fat_Append.
Mmc_Fat_Append.
Example
Mmc_Fat_Set_File_Date(2005,9,30,17,41,0);