HWTimeZone class sealed
The zone a date is displayed in by HWText.dateTime.
The stored value is always the same instant; this only decides which wall clock it is shown on. An id the device does not know falls back to the device's own zone.
- Implemented types
- Implementers
Constructors
-
HWTimeZone.data(HWDataType<
String> data) -
The zone whose IANA id is stored in
data, an HWString the app writes alongside the date.constfactory - HWTimeZone.named(String id)
-
The IANA zone with
id, e.g.Europe/Berlin.constfactory
Properties
- dataField → HWDataType?
-
The data field supplying the zone id, or null when the zone is fixed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
helpers
→ List<
HWNativeHelper> -
The native functions resolving this zone, empty for the device's own.
no setter
-
kotlinImports
→ Set<
String> -
Always empty: the id is a
String, which needs no import.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
swiftViewModifiers
→ Set<
String> -
Always empty: a zone is an argument, not a view.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toKotlin(
int indent, {required String dataExpr}) → String -
Generates the Kotlin code.
indentis the number of indentation levels (4 spaces each).dataExpris the Kotlin expression to access data fields.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
toSwift(
int indent, {required String dataExpr}) → String -
Generates the SwiftUI code.
indentis the number of indentation levels (4 spaces each).dataExpris the Swift expression to access data fields (e.g. "entry.widgetData").inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- local → const HWTimeZone
- The device's own time zone, and the default.
- utc → const HWTimeZone
- UTC, whatever the device is set to.