<< Previous | Next >>

mktime

unsigned long mktime( struct tm * timeptr );

Description

Converts the contents of structure pointed to by timeptr into seconds.

   

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
Pointer to tm structure

Return value

Time in seconds since January 1, 1980.

Library

RTCLOCK.LIB

See also

mktm, tm_rd, tm_wr


Dynamic C Functions << Previous | Next >> rabbit.com