nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ date_time_now()

int date_time_now ( int64_t *  unix_time_ms)

#include <include/date_time.h>

Get the current date time UTC.

Note
If the function fails, the passed in variable retains its old value.
Parameters
[out]unix_time_msPointer to a variable to store the current date time UTC.
Returns
0 If the operation was successful.
-ENODATA If the library does not have a valid date time UTC.
-EINVAL If the passed in pointer is NULL.