#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_time | Pointer 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.