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

◆ date_time_now_local()

int date_time_now_local ( int64_t *  local_time_ms)

#include <include/date_time.h>

Get the current date time in local time.

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