void rtc_tm_normalize(struct tm *time)
Normalize the time struct.
uint32_t rtc_mktime(const struct tm *t)
Convert time struct into timestamp.
bool rtc_tm_valid(const struct tm *t)
Verify that a time struct t contains valid data.
int rtc_tm_compare(const struct tm *a, const struct tm *b)
Compare two time structs.
void rtc_localtime(uint32_t time, struct tm *t)
Converts an RTC timestamp into a time struct.