tm構造体

tm 構造体は暦時刻 (calendar time) の要素を格納する構造体です.

tm 構造体のメンバは以下の通りです.

メンバ

メンバ意味
inttm_sec秒 (0 ~ 60)
inttm_min分 (0 ~ 59)
inttm_hour時 (0 ~ 23)
inttm_mday日 (1 ~ 31)
inttm_mon1 月からの月数 (0 ~ 11)
inttm_year1900 年からの年数
inttm_wday日曜日からの日数 (0 ~ 6)
inttm_yday1 月1 日からの日数 (0 ~ 365)
inttm_isdst夏時間フラグ
夏時間を採用しているとき: 正
夏時間を採用していないとき: 0
この情報が得られないとき: 負