FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
devices::rtc::tm Struct Reference

The datetime structure used by the RTC API. More...

#include <fastarduino/devices/ds1307.h>

Public Attributes

uint8_t tm_sec = 0
 seconds after the minute - [ 0 to 59 ] More...
 
uint8_t tm_min = 0
 minutes after the hour - [ 0 to 59 ] More...
 
uint8_t tm_hour = 0
 hours since midnight - [ 0 to 23 ] More...
 
WeekDay tm_wday = WeekDay(0)
 days since Sunday - [ 1 to 7 ] More...
 
uint8_t tm_mday = 0
 day of the month - [ 1 to 31 ] More...
 
uint8_t tm_mon = 0
 months since January - [ 1 to 12 ] More...
 
uint8_t tm_year = 0
 years since 2000 More...
 

Detailed Description

The datetime structure used by the RTC API.

This is inspired by C standard time.h header but was slightly adapted to fit DS1307 RTC chip.

See also
DS1307::get_datetime()
DS1307::set_datetime()

Definition at line 79 of file ds1307.h.

Member Data Documentation

◆ tm_sec

uint8_t devices::rtc::tm::tm_sec = 0

seconds after the minute - [ 0 to 59 ]

Definition at line 82 of file ds1307.h.

◆ tm_min

uint8_t devices::rtc::tm::tm_min = 0

minutes after the hour - [ 0 to 59 ]

Definition at line 84 of file ds1307.h.

◆ tm_hour

uint8_t devices::rtc::tm::tm_hour = 0

hours since midnight - [ 0 to 23 ]

Definition at line 86 of file ds1307.h.

◆ tm_wday

WeekDay devices::rtc::tm::tm_wday = WeekDay(0)

days since Sunday - [ 1 to 7 ]

Definition at line 88 of file ds1307.h.

◆ tm_mday

uint8_t devices::rtc::tm::tm_mday = 0

day of the month - [ 1 to 31 ]

Definition at line 90 of file ds1307.h.

◆ tm_mon

uint8_t devices::rtc::tm::tm_mon = 0

months since January - [ 1 to 12 ]

Definition at line 92 of file ds1307.h.

◆ tm_year

uint8_t devices::rtc::tm::tm_year = 0

years since 2000

Definition at line 94 of file ds1307.h.


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