Data types for manipulating date and time values.
#include <time.h>
typedef clock_t /* ... */ ;
typedef time_t /* ... */ ;
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_wday;
int tm_yday;
int tm_isdst;
};
tm_sec
Seconds, from 0 to 59.
tm_min
Minutes, from 0 to 59.
tm_hour
Hours, from 0 to 23.
tm_mday
Day of the month, from 1 to 31.
tm_mon
Month of the year, from 0 to 11. January is month 0.
tm_year
Year, beginning at 1900.
tm_wday
Day of the week, from 0 to 6. Sunday is day 0.
tm_yday
Day of the year, from 0 to 365. January 1 is day 0.
tm_isdst
Daylight savings time. Positive if daylight savings time is in effect, zero if it is not, and negative if such information is not available.
The clock_t type is a numeric, system-dependent type returned by the clock() function.
The time_t type is a system-dependent type used to represent a calendar date and time as seconds elapsed since a fixed date. A value of type time_t represents the number of UTC seconds since 1970 January 1.
The type's range and precision are defined in the ISO/IEC C standard as implementation defined. The EWL implementation uses an unsigned long int for time_t. Note that this type cannot represent dates or times that exceed the size of the maximum value of time_t ( ULONG_MAX). Similarly, since time_t is unsigned, negative values are also out of range.