$treeview $search $mathjax $extrastylesheet
avr-libc  2.0.0
$projectbrief
$projectbrief
$searchbox

AVR Libc Home Page

AVRs

AVR Libc Development Pages

Main Page

User Manual

Library Reference

FAQ

Example Projects

tm Struct Reference
[<time.h>: Time]

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 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.


Field Documentation

hours since midnight - [ 0 to 23 ]

Daylight Saving Time flag

day of the month - [ 1 to 31 ]

minutes after the hour - [ 0 to 59 ]

months since January - [ 0 to 11 ]

seconds after the minute - [ 0 to 59 ]

days since Sunday - [ 0 to 6 ]

days since January 1 - [ 0 to 365 ]

years since 1900


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Defines