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

◆ date_time_set()

int date_time_set ( const struct tm *  new_date_time)

#include <include/date_time.h>

Set the current date time.

Note
See http://www.cplusplus.com/reference/ctime/tm/ for accepted input format. Members wday and yday have no impact on the date time UTC and are thus does not need to be set.
Parameters
[in]new_date_timePointer to a tm structure.
Returns
0 If the operation was successful.
-EINVAL If a member of the passing variable new_date_time does not adhere to the tm structure format, or pointer is passed in as NULL.