<< Previous | Next >> | |
|
unsigned int mktm( struct tm * timeptr, unsigned long time );
Description
- Converts the seconds (
time
) to date and time and fills in the fields of thetm
structure with the result.struct tm {
char tm_sec; // seconds 0-59
char tm_min; // 0-59
char tm_hour; // 0-23
char tm_mday; // 1-31
char tm_mon; // 1-12
char tm_year; // 80-147 (1980-2047)
char tm_wday; // 0-6 0==sunday
};Parameters
- timeptr
- Address to store date and time into structure:
- time
- Seconds since January 1, 1980.
Return value
0
Library
- RTCLOCK.LIB
See also
- mktime, tm_rd, tm_wr
Dynamic C Functions | << Previous | Next >> | rabbit.com |