7#include <libtock-sync/peripherals/rtc.h>
void set_epoch(uint32_t epoch)
Sets the current unix epoch timestamp.
uint32_t epoch(void)
Gets the current unix epoch timestamp.
uint32_t rtc_date_to_epoch(const libtock_rtc_date_t *date)
Converts tock time to unix epoch time.
void epoch_to_rtc_date(uint32_t epoch, libtock_rtc_date_t *date)
Convert unix epoch to tock time.