Definition in file rtc_utils.h.
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
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 (const 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. | |