|
楼主 |
发表于 2007-11-25 09:31:54
|
显示全部楼层
typedef struct
{
uint8 sec; // secondsafter the minute - [0,59]
uint8 min; // minutesafter the hour - [0,59]
uint8 hour; // hours since midnight - [0,23]
}SCI_TIME_T;
typedef struct
{
uint8 mday; // day of the month - [1,31]
uint8 mon; // months - [1,12]
uint16 year; // years [2000,2049]
uint8 wday; // days since Sunday - [0,6], (Sunday : 0, Monday : 1)
}SCI_DATE_T;
PUBLIC ERR_TM_E TM_GetSysTime( // If successful, return ERR_TM_NONE;
// else return ERR_TM_PNULL.
SCI_TIME_T *time_ptr // Save time value gotten.
);
PUBLIC ERR_TM_E TM_GetSysDate( // If successful, return ERR_TM_NONE;
// else return ERR_TM_PNULL.
SCI_DATE_T *date_ptr // Save system date gotten.
); |
|