This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I update the nrf9160 system time?

This way the system time is used to remain the same, without following the new

struct timespec tspec;
 tspec.tv_sec = 1592382898;
 tspec.tv_nsec = 1592382898 * 1000 * 1000 * 1000;
 clock_settime(CLOCK_REALTIME, &tspec);

Related