Skip to content

Commit 0ff8625

Browse files
karlsoderbyalranel
andauthored
Update content/arduino-cloud/01.getting-started/02.technical-reference/iot-cloud-tech-ref.md
Co-authored-by: Alessandro Ranellucci <[email protected]>
1 parent 4c55aa1 commit 0ff8625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For example, one button could set three smart bulbs to the same color by just se
135135

136136
To retrieve local time, use the `ArduinoCloud.getLocalTime()` method in your sketch. The value returned represents the current local time expressed as a Unix timestamp (i.e. seconds from the epoch), and it automatically takes your time zone settings and DST (Daylight Saving Time) into account. Time zone can be set in the Thing configuration page within the Arduino IoT Cloud platform.
137137

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).
138+
The returned timestamp can be displayed in a dashboard using a `CloudTime` variable and the [Time Picker widget](/arduino-cloud/getting-started/technical-reference#time-picker), or can be parsed with a third-party library such as [Time](https://www.arduino.cc/reference/en/libraries/time/) in case you want to show it on a display.
139139

140140
```arduino
141141
myTimeVariable = ArduinoCloud.getLocalTime()

0 commit comments

Comments
 (0)