Hello,
I would like to get current UNIX time with my nrf9160.
First I saw that we can ask the current time from the modem using the AT cmd "AT+CCLK?".
This function works, but give me the date and time and not the UNIX time.
I saw also that another function exist -> int time_modem_get()
But I don't know how to use it.
I've add in my prj.conf this two lines:
- CONFIG_DATE_TIME=y
- CONFIG_DATE_TIME_MODEM=y
But I can't compile because the functin time_modem_get is not declared in this scope.
Someone has an idea how to use it?
Thanks