Class: Toybox.System.ClockTime
- Inherits:
-
Toybox.Lang.Object
Overview
Represents the current local time.
ClockTime is a convenient way to get the current time in an easy-to-use format without the need to perform time zone conversions or time-based arithmetic. Values provided by ClockTime may require formatting for proper display within an app.
See Also:
Instance Member Summary collapse
-
dst as Lang.Number
The daylight savings time offset.
-
hour as Lang.Number
The hour of the day based on a 24-hour clock.
-
min as Lang.Number
The minute of the current hour.
-
sec as Lang.Number
The second of the current minute.
-
timeZoneOffset as Lang.Number
The time offset from UTC in seconds.
Instance Attribute Details
var dst as Lang.Number
The daylight savings time offset.
var hour as Lang.Number
The hour of the day based on a 24-hour clock.
var min as Lang.Number
The minute of the current hour.
var sec as Lang.Number
The second of the current minute.
var timeZoneOffset as Lang.Number
The time offset from UTC in seconds.