![]() |
nRF Connect SDK API 3.4.99
|
| struct tm * bt_mesh_time_srv_localtime_r | ( | struct bt_mesh_time_srv * | srv, |
| int64_t | uptime, | ||
| struct tm * | timeptr ) |
#include <time_srv.h>
Get the device local time at a given uptime.
k_uptime_get must be used with caution, since there is no guarantee that the output data is fully reliable.| [in] | srv | Time Server instance. |
| [in] | uptime | Uptime at the desired point in time. |
| [out] | timeptr | The device's local time at the given uptime. |
| Pointer | to time struct if successful, NULL otherwise. |