Time_t is long, which stores the number of seconds between 00:00:00 on January 1, January 1, 1970 and the time indicated by Greenwich Mean Time.
For example
Time_t (0) indicates Greenwich Mean Time 00:00:00, January 1, January 1, 1970
Time_t (2) indicates Greenwich Mean Time 00:00:02, January 1, January 1, 1970
Timezone indicates the number of seconds in the local time zone, for example, + 8 time zone * 3600 seconds
Struct TM
{
Int tm_sec;
Int tm_min;
Int tm_hour;
Int tm_mday;
Int tm_mon;
Int tm_year;
Int tm_wday;
Int tm_yday;
Int tm_isdst;
};
Int tm_sec indicates the current number of seconds. The normal range is 0-59, but the value can be 61 seconds.
Int tm_min indicates the current score, range: 0-59
Int tm_hour, which is counted from midnight, ranges from 0 to 23.
The number of days in the current month of int tm_mday, ranging from 01 to 31.
Int tm_mon indicates the current month. The value ranges from 0 to 11 from January 1, January.
Int tm_year: The number of years since January 1, 1900
The number of days in a week for int tm_wday. The value ranges from 0 to 6 from Monday.
Int tm_yday indicates the number of days since January 1, January 1 this year. The value range is 0-365.
Int tm_isdst time saving flag