Struct rtc_calendar_time

Time structure containing the time given by or set to the RTC calendar. The structure uses seven values to give second, minute, hour, PM/AM, day, month, and year. It should be initialized via the rtc_calendar_get_time_defaults() function before use.

Table 1. Members
Type Name Description
uint8_t day

Day value, where day 1 is the first day of the month

uint8_t hour

Hour value

uint8_t minute

Minute value

uint8_t month

Month value, where month 1 is January

bool pm

PM/AM value, true for PM, or false for AM

uint8_t second

Second value

uint16_t year

Year value