Datasheet
Mmc_Fat_Get_File_Date
269
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Mmc_Fat_Get_File_Date(dim byref year as word, dim
byref month, day, hours, mins as byte)
Returns Nothing.
Description
Reads time/date attributes of the currently assigned file.
Parameters:
-
year: buffer to store year attribute to. Upon function execution year attribute is
returned through this parameter.
-
month: buffer to store month attribute to. Upon function execution month
attribute is returned through this parameter.
-
day: buffer to store day attribute to. Upon function execution day attribute is
returned through this parameter.
- hours: buffer to store hours attribute to. Upon function execution hours
attribute is returned through this parameter.
-
mins: buffer to store minutes attribute to. Upon function execution minutes
attribute is returned through this parameter.
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.
Example
dim year as word
month, day, hours, mins as byte
...
main:
...
Mmc_Fat_Get_File_Date(year, month, day, hours, mins)
...
end.