avr-libc: tm Struct Reference

avr-libc 2.0.0 Standard C library for AVR-GCC |

## AVR Libc Home Page |  | ## AVR Libc Development Pages
## Main Page | ## User Manual | ## Library Reference | ## FAQ | ## 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 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

## ◆ tm_hour

int8_t tm::tm_hour

hours since midnight - [ 0 to 23 ]

## ◆ tm_isdst

int16_t tm::tm_isdst

Daylight Saving Time flag

## ◆ tm_mday

int8_t tm::tm_mday

day of the month - [ 1 to 31 ]

## ◆ tm_min

int8_t tm::tm_min

minutes after the hour - [ 0 to 59 ]

## ◆ tm_mon

int8_t tm::tm_mon

months since January - [ 0 to 11 ]

## ◆ tm_sec

int8_t tm::tm_sec

seconds after the minute - [ 0 to 59 ]

## ◆ tm_wday

int8_t tm::tm_wday

days since Sunday - [ 0 to 6 ]

## ◆ tm_yday

int16_t tm::tm_yday

days since January 1 - [ 0 to 365 ]

## ◆ tm_year

int16_t tm::tm_year

years since 1900

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

- time.h