Device side date/time keeping

Hi all,

What can I expect from the date() function when used on the device? Is there any mechanism that helps keep the date in sync with the agent/server? I assume the agent side has some linkage into NTP for time keeping.
I’m using deep sleep, does that affect date() ?

Thanks!
Tom.

The RTC is set when the imp connects to the server, and runs when you are in deep sleep (hence the sleepfor/sleepuntil functions). When you warm boot (wake), the time is available from the RTC without connecting to the server.