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

◆ lwm2m_carrier_time_read()

void lwm2m_carrier_time_read ( int32_t *  utc_time,
int *  utc_offset,
const char **  tz 
)

#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>

Read all time parameters.

Input NULL for the parameters to ignore.

Note
This function can be implemented by the application, if custom time management is needed. A __weak implementation is included inside the LwM2M carrier library which will read the time from modem.
Parameters
[out]utc_timePointer to time since Epoch in seconds.
[out]utc_offsetPointer to UTC offset in minutes.
[out]tzPointer to null-terminated timezone string pointer.