TimeZone¶
Import: import system;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
TimeZone¶
An IANA timezone identifier (e.g. "America/New_York", "Europe/London"), resolving UTC offsets from the host's timezone database — including historical DST rules, unlike a plain fixed offset. Use with DateTime.now_in/DateTime.of_zoned/DateTime.to_zone.
name¶
The IANA zone identifier (e.g. "America/New_York").
utc¶
The UTC zone (offset 0 at every instant).
local¶
The host's configured local timezone, or utc if it can't be determined.
of¶
Resolves name as an IANA zone identifier (e.g. "Asia/Kolkata"), or an error if the host's timezone database doesn't recognize it.
offset_minutes_at¶
This zone's UTC offset in minutes at epoch_millis (accounting for DST rules in effect at that instant). Falls back to 0 if the zone is no longer recognized by the host.