Microchip® Advanced Software Framework

rtc_calendar_time Struct Reference

Time structure.

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.

#include <rtc_calendar.h>

Data Fields

uint8_t day
 Day value, where day 1 is the first day of the month. More...
 
uint8_t hour
 Hour value. More...
 
uint8_t minute
 Minute value. More...
 
uint8_t month
 Month value, where month 1 is January. More...
 
bool pm
 PM/AM value, true for PM, or false for AM. More...
 
uint8_t second
 Second value. More...
 
uint16_t year
 Year value. More...
 

uint8_t rtc_calendar_time::day
bool rtc_calendar_time::pm