Loading...
Searching...
No Matches
rtc_utils.h File Reference

Detailed Description

#include <stdbool.h>
#include <stdint.h>
#include <time.h>
+ Include dependency graph for rtc_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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