Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Mmc_Fat_Set_File_Date
268
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Mmc_Fat_Set_File_Date(dim year as worddim month,
day, hours, mins, seconds 
as byte)
Returns
Nothing.
Description
Sets the date/time stamp. Any subsequent file write operation will write this
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.
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.
Example
Mmc_Fat_Set_File_Date(2005,9,30,17,41,0)