---
name: "tm"
section: "3avr"
platform: "linux"
package: "avr-libc"
version: "1:2.2.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tm/3avr"
---

# tm(3avr)

## NAME

tm

## SYNOPSIS

`#include <time.h>`

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

### int8\_t tm::tm\_hour

hours since midnight - \[ 0 to 23 \]

### int16\_t tm::tm\_isdst

Daylight Saving Time flag

### int8\_t tm::tm\_mday

day of the month - \[ 1 to 31 \]

### int8\_t tm::tm\_min

minutes after the hour - \[ 0 to 59 \]

### int8\_t tm::tm\_mon

months since January - \[ 0 to 11 \]

### int8\_t tm::tm\_sec

seconds after the minute - \[ 0 to 59 \]

### int8\_t tm::tm\_wday

days since Sunday - \[ 0 to 6 \]

### int16\_t tm::tm\_yday

days since January 1 - \[ 0 to 365 \]

### int16\_t tm::tm\_year

years since 1900

## Author

Generated automatically by Doxygen for AVR-LibC from the source code.
