User manual
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
291
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Date_Modied
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_Modied(year, month, day, hours, mins)
Notes None.
Prototype
sub procedure Cf_Fat_Get_File_Date_Modied(dim byref year as word, dim byref
month, day, hours, mins as byte)
Description Retrieves the last modication date/time of the currently assigned le.
Parameters - year: buffer to store year of modication attribute to. Upon function execution year of modication
attribute is returned through this parameter.
- month: buffer to store month of modication attribute to. Upon function execution month of modication
attribute is returned through this parameter.
- day: buffer to store day of modication attribute to. Upon function execution day of modication
attribute is returned through this parameter.
- hours: buffer to store hours of modication attribute to. Upon function execution hours of modication
attribute is returned through this parameter.
- mins: buffer to store minutes of modication attribute to. Upon function execution minutes of
modication 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_Modied(year, month, day, hours, mins)
Notes None.