avr-libc  2.0.0
Standard C library for AVR-GCC

AVR Libc Home Page

AVRs

AVR Libc Development Pages

Main Page

User Manual

Library Reference

FAQ

Example Projects

All Data Structures Files Functions Variables Typedefs Enumerations Macros Modules Pages
データフィールド
tm 構造体リファレンス

データフィールド

int8_t tm_sec
 
int8_t tm_min
 
int8_t tm_hour
 
int8_t tm_mday
 
int8_t tm_wday
 
int8_t tm_mon
 
int16_t tm_year
 
int16_t tm_yday
 
int16_t tm_isdst
 

説明詳細

tm構造体には、グレゴリオ暦のコンポーネントに「分解」された時間の表現が含まれます。

tm_isdst値は、サマータイムが有効でない場合は0で、情報が利用できない場合は負になります。

サマータイムの調整が有効な場合は、時計を進めた後の値を返します。

サマータイムの詳細は、set_dst()関数を参照してください。

フィールド説明

int8_t tm::tm_hour

0時からの経過時間 - [ 0 to 23 ]

int16_t tm::tm_isdst

サマータイムフラグ

int8_t tm::tm_mday

月の日付 - [ 1 to 31 ]

int8_t tm::tm_min

0分からの経過分 - [ 0 to 59 ]

int8_t tm::tm_mon

1月からの経過月 - [ 0 to 11 ]

int8_t tm::tm_sec

0秒からの経過秒 - [ 0 to 59 ]

int8_t tm::tm_wday

日曜からの経過日(曜日) - [ 0 to 6 ]

int16_t tm::tm_yday

1月1日からの経過日 - [ 0 to 365 ]

int16_t tm::tm_year

1900年からの経過年


この構造体のドキュメントは、次のファイルから生成されました。