Hey,
I have an E-Series Dev Board.
As i want to know what time of the day it is to change the programms behaviour, i was checking the Time.hour() method. It works when I have connected to the cloud. But without connecting to the cloud it returns 0.
So to get the actuall time is it necessary to connect to the cloud?
Thanks
ScruffR
October 28, 2020, 12:10pm
2
What a coincidence a very similar question was asked and answered merely a few hours ago
I am using Electron, my application need to publish event with time stamp of real local time, this mean with time zone and Daylight Saving Time (DST) consideration.
It seems Time.local() would take care of it, reading from the docs https://docs.particle.io/reference/device-os/firmware/electron/#local-
But this is my question, say in the beginning we already connected to Cellular Network, then query the time zone with DST adjustment via AT command and use the value to set time zone accordingly.…
The RTC needs to be synced at least once (either via the cloud or manually via Time.setTime()
) and then be kept powered so that it can hold the time.
thanks,
so an initial cloud handshake has to occure?
system
Closed
April 29, 2021, 12:14am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.