#include <stdint.h>
Go to the source code of this file.
◆ clock_datetimeToTimestamp()
Convert a datetime to a timestamp.
- Parameters
-
dateTime | Pointer to the datetime to convert |
- Returns
- A timestamp representing the given datetime as a number of seconds since January 1st, 1970
◆ clock_getTimestamp()
uint64_t clock_getTimestamp |
( |
| ) |
|
Get the current timestamp.
- Returns
- A timestamp representing the current time as number of seconds since January 1st, 1970
◆ clock_timestampToDatetime()
void clock_timestampToDatetime |
( |
uint64_t |
timestamp, |
|
|
clock_DateTime * |
dateTime |
|
) |
| |
Convert a timestamp to a datetime.
- Parameters
-
timestamp | The timestamp to convert |
dateTime | Pointer to a datetime struct to write |