ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
time.h File Reference
#include <libtock-sync/peripherals/rtc.h>
#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t epoch (void)
 Gets the current unix epoch timestamp.
 
void set_epoch (uint32_t epoch)
 Sets 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.