User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
291
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Date_Modied
Prototype
sub procedure Cf_Fat_Get_File_Date(dim byref year as word, dim byref month
as byte, dim byref day as byte, dim byref hours as byte, dim byref mins as
byte)
Description Reads time/date attributes of currently assigned le.
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.
Returns Nothing.
Requires CF card and CF library must be initialized for le operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
dim year as word
dim month, day, hours, mins as byte
...
Cf_Fat_Get_File_Date_Modied(year, month, day, hours, mins)
Notes None.
Prototype
sub procedure Cf_Fat_Get_File_Date_Modied(dim byref year as word, dim byref
month, day, hours, mins as byte)
Description Retrieves the last modication date/time of the currently assigned le.
Parameters - year: buffer to store year of modication attribute to. Upon function execution year of modication
attribute is returned through this parameter.
- month: buffer to store month of modication attribute to. Upon function execution month of modication
attribute is returned through this parameter.
- day: buffer to store day of modication attribute to. Upon function execution day of modication
attribute is returned through this parameter.
- hours: buffer to store hours of modication attribute to. Upon function execution hours of modication
attribute is returned through this parameter.
- mins: buffer to store minutes of modication attribute to. Upon function execution minutes of
modication attribute is returned through this parameter.
Returns Nothing.
Requires CF card and CF library must be initialized for le operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
dim year as word
dim month, day, hours, mins as byte
...
Cf_Fat_Get_File_Date_Modied(year, month, day, hours, mins)
Notes None.