What will functions like
int a = Time.minute();
int b = Time.hour();
return if there is no cloud connection on boot?
I assume Time.isValid() will be false? In this case I can set an arbitrary time with Time.setTime(1413034662) in order for Time functions to work?
armor
2
There is a RTC on board which once set with the time/date and if kept powered will provide a reasonably accurate time once set.
To answer
What will functions like Time.minute() return if there is no cloud connection on boot?
In my experience either 1970/1/1:00:00:00 i.e. unix epoch = 0 or 1999/12/1:00:00:00 which is what the RTC will return if initialised.
3 Likes