Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
291
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Date_Modified
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 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. 
Returns
Nothing.
Requires
CF card and CF library must be initialized for file 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_Modified(year, month, day, hours, mins)
Notes
None.
Prototype
sub procedure Cf_Fat_Get_File_Date_Modified(dim byref year as word, dim byref 
month, day, hours, mins as byte)
Description Retrieves the last modification date/time of the currently assigned file.
Parameters 
year
: buffer to store year of modification attribute to. Upon function execution year of modification 
attribute is returned through this parameter. 
month
: buffer to store month of modification attribute to. Upon function execution month of modification 
attribute is returned through this parameter. 
day
: buffer to store day of modification attribute to. Upon function execution day of modification 
attribute is returned through this parameter. 
hours
: buffer to store hours of modification attribute to. Upon function execution hours of modification 
attribute is returned through this parameter. 
mins
:  buffer  to  store  minutes  of  modification  attribute  to.  Upon  function  execution  minutes  of 
modification attribute is returned through this parameter. 
Returns
Nothing.
Requires
CF card and CF library must be initialized for file 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_Modified(year, month, day, hours, mins)
Notes
None.