TimeZone class final
See the Rust documentation for TimeZone for more information.
- Implemented types
Constructors
- TimeZone.fromBcp47(String id)
-
Creates a time zone from a BCP-47 string.
factory
- TimeZone.fromIanaId(String ianaId)
-
Construct a TimeZone from an IANA time zone ID.
factory
- TimeZone.fromSystemId(String id, String region)
-
Construct a TimeZone from the platform-specific ID.
factory
- TimeZone.fromWindowsId(String windowsId, String region)
-
Construct a TimeZone from a Windows time zone ID and region.
factory
- TimeZone.unknown()
-
The unknown time zone.
factory
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
-
isUnknown(
) → bool - Whether the time zone is the unknown zone.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withOffset(
UtcOffset offset) → TimeZoneInfo -
See the Rust documentation for
with_offsetfor more information. -
withoutOffset(
) → TimeZoneInfo -
See the Rust documentation for
without_offsetfor more information.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited