Defined In: time.h
Syntax:
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year; /* Since 1900 */
int tm_wday; /* 0 = Sunday */
int tm_yday;
int tm_isdst;
};
Purpose: The tm structure is used to store the current date and time in a more accessible form. The date and time structures are essentially subsets of it.
The isdst flag is +ve if daylight saving time is in effect, 0 if it is not, or -ve if the information is not available.
|
|
|