Skip to content

Commit 59b92a8

Browse files
committed
Update iot-cloud-tech-ref.md
1 parent 66b1a3e commit 59b92a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/arduino-cloud/01.getting-started/02.technical-reference/iot-cloud-tech-ref.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ For example, one button could set three smart bulbs to the same color by just se
133133

134134
### Local Time
135135

136-
To retrieve local time, use the `ArduinoCloud.getLocalTime()` function in a sketch. The value returned is the Unix timestamp, which is time passed in seconds since 1970.
137-
138-
This data can be stored in a `CloudTime` variable, and can be visualed using the [Time Picker widget](/arduino-cloud/getting-started/technical-reference#time-picker) in a dashboard.
136+
To retrieve local time, use the `ArduinoCloud.getLocalTime()` function in a sketch. The value returned is the Unix timestamp or UTC, and automatically adjusts based DST (Daylight Time Savings) and the configured time zone. This is changed inside your Thing configuration.
139137

138+
This data can be stored in a `CloudTime` variable, and can be visualed using the [Time Picker widget](/arduino-cloud/getting-started/technical-reference#time-picker).
140139

141140
```arduino
142141
myTimeVariable = ArduinoCloud.getLocalTime()
143142
```
144143

144+
***Note that the [Arduino_IoTCloud](https://github.com/arduino-libraries/ArduinoIoTCloud) library creates an instance of `rtc`, using the [RTCZero](https://github.com/arduino-libraries/RTCZero) library. As there is only one hardware instance, you cannot have multiple `rtc` instances.***
145+
145146
## Things
146147

147148
In order to use your devices in IoT Cloud, you need to associate a Thing to each of them. A Thing is an abstract concept which holds the configuration of the variables and other settings, as well as the history of the data collected for the variables.

0 commit comments

Comments
 (0)