AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Library Reference FAQ Alphabetical Index Example Projects

Data Fields
tm Struct Reference

Data Fields

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
 

Detailed Description

The tm structure contains a representation of time 'broken down' into components of the Gregorian calendar.

The normal ranges of the elements are..

tm_sec seconds after the minute - [ 0 to 59 ]
tm_min minutes after the hour - [ 0 to 59 ]
tm_hour hours since midnight - [ 0 to 23 ]
tm_mday day of the month - [ 1 to 31 ]
tm_wday days since Sunday - [ 0 to 6 ]
tm_mon months since January - [ 0 to 11 ]
tm_year years since 1900
tm_yday days since January 1 - [ 0 to 365 ]
tm_isdst Daylight Saving Time flag *
 The value of tm_isdst is zero if Daylight Saving Time is not in effect, and is negative if
the information is not available.

When Daylight Saving Time is in effect, the value represents the number of
seconds the clock is advanced.

See the set_dst() function for more information about Daylight Saving.

The documentation for this struct was generated from the following file:

Automatically generated by Doxygen 1.8.7 on Tue Aug 12 2014.