Pebble.Time
Commands for reading watch time and timezone information.
Time and timezone
Union Types
DayOfWeek
type DayOfWeektype DayOfWeek
= Monday
| Tuesday
| Wednesday
| Thursday
| Friday
| Saturday
| SundayStructured local time/date information from the watch runtime.
Type Aliases
CurrentDateTime
type alias CurrentDateTime = { year : Int
, month : Int
, day : Int
, dayOfWeek : DayOfWeek
, hour : Int
, minute : Int
, second : Int
, utcOffsetMinutes : Int
}Structured local time/date information from the watch runtime.
Values
currentDateTime
currentDateTime : (CurrentDateTime -> msg) -> Cmd msgRequest the current local date/time with UTC offset in minutes.
currentTimeString
currentTimeString : (String -> msg) -> Cmd msgRequest the current local time string from the watch runtime.
clockStyle24h
clockStyle24h : (Bool -> msg) -> Cmd msgRequest whether the user is using 24-hour time.
timezoneIsSet
timezoneIsSet : (Bool -> msg) -> Cmd msgRequest whether timezone data is currently available.
timezone
timezone : (String -> msg) -> Cmd msgRequest the current timezone identifier string.