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

◆ bt_mesh_time_srv_localtime()

struct tm * bt_mesh_time_srv_localtime ( struct bt_mesh_time_srv srv,
int64_t  uptime 
)

#include <include/bluetooth/mesh/time_srv.h>

Get the device local time at a given uptime.

Note
This function does not support local time lookups for uptimes that occurred before the last received set- or status update. In addition, lookups for uptimes that happened before k_uptime_get must be used with caution, since there is no guarantee that the output data is fully reliable.
Parameters
[in]srvTime Server instance.
[in]uptimeUptime at the desired point in time.
Return values
Pointerto time struct if successful, NULL otherwise.