菜鸟笔记
提升您的技术认知

struct tm的定义-ag真人游戏

struct tm {
int tm_sec; /* seconds /
int tm_min; /
minutes /
int tm_hour; /
hours /
int tm_mday; /
day of the month /
int tm_mon; /
month /
int tm_year; /
year /
int tm_wday; /
day of the week /
int tm_yday; /
day in the year /
int tm_isdst; /
daylight saving time /
long int tm_gmtoff; /
指定了日期变更线东面时区中utc东部时区正秒数或utc西部时区的负秒数/
const char *tm_zone; /
当前时区的名字(与环境变量tz有关)*/
};

tm_sec
the number of seconds after the minute, normally in the range 0 to 59, but can be up to 60 to allow for leap seconds.

tm_min
the number of minutes after the hour, in the range 0 to 59.

tm_hour
the number of hours past midnight, in the range 0 to 23.

tm_mday
the day of the month, in the range 1 to 31.

tm_mon
the number of months since january, in the range 0 to 11.

tm_year
the number of years since 1900.

tm_wday
the number of days since sunday, in the range 0 to 6.

tm_yday
the number of days since january 1, in the range 0 to 365.

tm_isdst
a flag that indicates whether daylight saving time is in effect at the time described. the value is positive if daylight saving time is in effect, zero if it is not, and negative if the information is not available.

网站地图