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

◆ bt_mesh_time_srv_localtime_r()

struct tm * bt_mesh_time_srv_localtime_r ( struct bt_mesh_time_srv srv,
int64_t  uptime,
struct tm *  timeptr 
)

#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.
[out]timeptrThe device's local time at the given uptime.
Return values
Pointerto time struct if successful, NULL otherwise.