UTimezone class abstract
Device time zone as an IANA id and UTC offset; UHttpClient sends it in the "Timezone" header. UTimezone.getLocalTimezone() → "Asia/Tehran"
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getLocalTimezone(
) → String - IANA zone of the device, e.g. "Asia/Tehran" (reported by the OS; guessed from the offset when unknown).
-
getTimezoneOffset(
) → Duration -
Current offset from UTC (changes with daylight saving).
UTimezone.getTimezoneOffset().inMinutes→ 210 -
offsetText(
) → String -
Current offset as text.
UTimezone.offsetText()→ "+03:30"