OK, worked out the storage part =)
Now, I was going to set the timer function to update Date.now() to the storage, so that I can reference it after reboot and set the time to the previous value, but for some reason get an error:
>Date.setTime(1642303291816.30810546875)
Uncaught Error: Function "setTime" not found!
at line 1 col 6
Date.setTime(1642303291816.30810546875)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
OK, worked out the storage part =)
Now, I was going to set the timer function to update Date.now() to the storage, so that I can reference it after reboot and set the time to the previous value, but for some reason get an error: