📜  C++ 代码示例中的时间和日期(tm 结构)

📅  最后修改于: 2022-03-11 14:44:49.905000             🧑  作者: Mango

代码示例1
struct tm 
{
    int tm_sec;  // seconds of minutes from 0 to 61
    int tm_min;  // minutes of hour from 0 to 59
    int tm_hour; // hours of day from 0 to 24
    int tm_mday; // day of month from 1 to 31
    int tm_mon;  // month of year from 0 to 11
    int tm_year; // year since 1900
    int tm_wday; // days since sunday
    int tm_yday; // days since January 1st
    int tm_isdst;// hours of daylight savings time
}