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

How to get current unix epoch time using date_time.h library?

Hi,

I'm trying to get the current epoch Unix timestamp (or the number of seconds since 01, January, 1970). 

I'm using the date_time.h library as Carl Richard suggested here: https://devzone.nordicsemi.com/f/nordic-q-a/65455/get-unix-time-with-nrf9160

But, as Elith points out, An error shows when building the project:

undefined reference to `date_time_update'

I'm using SDK Zephyr 1.3.0

Thank you in advance.

Parents Reply Children
No Data
Related