How to know date and time when device is offline due to some wifi issues

Hello Imps, say the electric imp device goes offline as the Wifi of the house went bad. How does my code on the device know the date and time? Is there any function? If I can know the date and time, for how long can I still make calls to whatever that function is and still get a reasonable date and time.


The imp’s RTC is set when it connects to the server, and will remain set as long as the device has power.

If you want your code to run when offline (the default behavior is to sleep) then you need to read this: … I thought we had some helper libraries for this but maybe they’re not ready yet or they weren’t libs…