ZoneId class final

Represents a time zone identifier, abstracting the concept of region-based or offset-based zone IDs (e.g., 'UTC', 'America/New_York').

The ZoneId class allows specifying or retrieving time zone information in a controlled and type-safe manner.

Example:

ZoneId utc = ZoneId.of('UTC');
print(utc.id); // Output: UTC

ZoneId systemZone = ZoneId.systemDefault();
print(systemZone); // Output: e.g., "PDT", "CET", depending on system

Constructors

ZoneId.of(String zoneId)
Factory constructor to create a ZoneId from a string-based zone ID.
factory
ZoneId.systemDefault()
Returns a ZoneId representing the system's current default time zone.
factory

Properties

hashCode int
Returns a hash code based on the zone ID string.
no setteroverride
id String
Returns the timezone ID string.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

normalized() String
Returns a normalized version of the zone ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns the human-readable string representation of this ZoneId.
override

Operators

operator ==(Object other) bool
Checks equality between two ZoneId instances.
override

Static Properties

AFRICA_ACCRA ZoneId
Accra timezone (Africa/Accra) - GMT (no DST).
final
AFRICA_ADDIS_ABABA ZoneId
Addis Ababa timezone (Africa/Addis_Ababa) - EAT (no DST).
final
AFRICA_ALGIERS ZoneId
Algiers timezone (Africa/Algiers) - CET (no DST).
final
AFRICA_CAIRO ZoneId
Cairo timezone (Africa/Cairo) - EET (no DST currently).
final
AFRICA_CASABLANCA ZoneId
Casablanca timezone (Africa/Casablanca) - WET/WEST.
final
AFRICA_JOHANNESBURG ZoneId
Johannesburg timezone (Africa/Johannesburg) - SAST (no DST).
final
AFRICA_KINSHASA ZoneId
Kinshasa timezone (Africa/Kinshasa) - WAT (no DST).
final
AFRICA_LAGOS ZoneId
Lagos timezone (Africa/Lagos) - WAT (no DST).
final
AFRICA_NAIROBI ZoneId
Nairobi timezone (Africa/Nairobi) - EAT (no DST).
final
AFRICA_TUNIS ZoneId
Tunis timezone (Africa/Tunis) - CET (no DST).
final
AMERICA_ANCHORAGE ZoneId
Anchorage timezone (America/Anchorage) - AKST/AKDT.
final
AMERICA_ARGENTINA_BUENOS_AIRES ZoneId
Buenos Aires timezone (America/Argentina/Buenos_Aires) - ART.
final
AMERICA_BELIZE ZoneId
Belize timezone (America/Belize) - CST (no DST).
final
AMERICA_BOGOTA ZoneId
Bogota timezone (America/Bogota) - COT (no DST).
final
AMERICA_CARACAS ZoneId
Caracas timezone (America/Caracas) - VET (no DST).
final
AMERICA_CHICAGO ZoneId
Chicago timezone (America/Chicago) - CST/CDT.
final
AMERICA_COSTA_RICA ZoneId
Costa Rica timezone (America/Costa_Rica) - CST (no DST).
final
AMERICA_DENVER ZoneId
Denver timezone (America/Denver) - MST/MDT.
final
AMERICA_GUATEMALA ZoneId
Guatemala timezone (America/Guatemala) - CST (no DST).
final
AMERICA_HAVANA ZoneId
Havana timezone (America/Havana) - CST/CDT.
final
AMERICA_JAMAICA ZoneId
Jamaica timezone (America/Jamaica) - EST (no DST).
final
AMERICA_LA_PAZ ZoneId
La Paz timezone (America/La_Paz) - BOT (no DST).
final
AMERICA_LIMA ZoneId
Lima timezone (America/Lima) - PET (no DST).
final
AMERICA_LOS_ANGELES ZoneId
Los Angeles timezone (America/Los_Angeles) - PST/PDT.
final
AMERICA_MEXICO_CITY ZoneId
Mexico City timezone (America/Mexico_City) - CST/CDT.
final
AMERICA_MONTREAL ZoneId
Montreal timezone (America/Montreal) - EST/EDT.
final
AMERICA_NEW_YORK ZoneId
New York timezone (America/New_York) - EST/EDT.
final
AMERICA_PANAMA ZoneId
Panama timezone (America/Panama) - EST (no DST).
final
AMERICA_PHOENIX ZoneId
Phoenix timezone (America/Phoenix) - MST (no DST).
final
AMERICA_PUERTO_RICO ZoneId
Puerto Rico timezone (America/Puerto_Rico) - AST (no DST).
final
AMERICA_SANTIAGO ZoneId
Santiago timezone (America/Santiago) - CLT/CLST.
final
AMERICA_SAO_PAULO ZoneId
Sao Paulo timezone (America/Sao_Paulo) - BRT/BRST.
final
AMERICA_TORONTO ZoneId
Toronto timezone (America/Toronto) - EST/EDT.
final
AMERICA_VANCOUVER ZoneId
Vancouver timezone (America/Vancouver) - PST/PDT.
final
ANTARCTICA_MCMURDO ZoneId
McMurdo timezone (Antarctica/McMurdo) - NZST/NZDT.
final
ANTARCTICA_PALMER ZoneId
Palmer timezone (Antarctica/Palmer) - CLST/CLT.
final
ASIA_ALMATY ZoneId
Almaty timezone (Asia/Almaty) - ALMT (no DST).
final
ASIA_BAGHDAD ZoneId
Baghdad timezone (Asia/Baghdad) - AST Arabia (no DST).
final
ASIA_BANGKOK ZoneId
Bangkok timezone (Asia/Bangkok) - ICT (no DST).
final
ASIA_COLOMBO ZoneId
Colombo timezone (Asia/Colombo) - IST Sri Lanka (no DST).
final
ASIA_DHAKA ZoneId
Dhaka timezone (Asia/Dhaka) - BST Bangladesh (no DST).
final
ASIA_DUBAI ZoneId
Dubai timezone (Asia/Dubai) - GST (no DST).
final
ASIA_HO_CHI_MINH ZoneId
Ho Chi Minh timezone (Asia/Ho_Chi_Minh) - ICT (no DST).
final
ASIA_HONG_KONG ZoneId
Hong Kong timezone (Asia/Hong_Kong) - HKT (no DST).
final
ASIA_JAKARTA ZoneId
Jakarta timezone (Asia/Jakarta) - WIB (no DST).
final
ASIA_JERUSALEM ZoneId
Jerusalem timezone (Asia/Jerusalem) - IST/IDT Israel.
final
ASIA_KARACHI ZoneId
Karachi timezone (Asia/Karachi) - PKT (no DST).
final
ASIA_KATHMANDU ZoneId
Kathmandu timezone (Asia/Kathmandu) - NPT +05:45 (no DST).
final
ASIA_KOLKATA ZoneId
Kolkata timezone (Asia/Kolkata) - IST +05:30 (no DST).
final
ASIA_KUALA_LUMPUR ZoneId
Kuala Lumpur timezone (Asia/Kuala_Lumpur) - MYT (no DST).
final
ASIA_MANILA ZoneId
Manila timezone (Asia/Manila) - PHT (no DST).
final
ASIA_RIYADH ZoneId
Riyadh timezone (Asia/Riyadh) - AST Arabia (no DST).
final
ASIA_SEOUL ZoneId
Seoul timezone (Asia/Seoul) - KST (no DST).
final
ASIA_SHANGHAI ZoneId
Shanghai timezone (Asia/Shanghai) - CST China (no DST).
final
ASIA_SINGAPORE ZoneId
Singapore timezone (Asia/Singapore) - SGT (no DST).
final
ASIA_TAIPEI ZoneId
Taipei timezone (Asia/Taipei) - CST Taiwan (no DST).
final
ASIA_TASHKENT ZoneId
Tashkent timezone (Asia/Tashkent) - UZT (no DST).
final
ASIA_TEHRAN ZoneId
Tehran timezone (Asia/Tehran) - IRST/IRDT +03:30/+04:30.
final
ASIA_TOKYO ZoneId
Tokyo timezone (Asia/Tokyo) - JST (no DST).
final
ASIA_YEKATERINBURG ZoneId
Yekaterinburg timezone (Asia/Yekaterinburg) - YEKT (no DST).
final
AUSTRALIA_ADELAIDE ZoneId
Adelaide timezone (Australia/Adelaide) - ACST/ACDT +09:30/+10:30.
final
AUSTRALIA_BRISBANE ZoneId
Brisbane timezone (Australia/Brisbane) - AEST (no DST).
final
AUSTRALIA_DARWIN ZoneId
Darwin timezone (Australia/Darwin) - ACST +09:30 (no DST).
final
AUSTRALIA_MELBOURNE ZoneId
Melbourne timezone (Australia/Melbourne) - AEST/AEDT.
final
AUSTRALIA_PERTH ZoneId
Perth timezone (Australia/Perth) - AWST (no DST).
final
AUSTRALIA_SYDNEY ZoneId
Sydney timezone (Australia/Sydney) - AEST/AEDT.
final
BST ZoneId
British Summer Time (BST) - UTC+1.
final
CDT ZoneId
Central Daylight Time (CDT) - UTC-5.
final
CEST ZoneId
Central European Summer Time (CEST) - UTC+2.
final
CET ZoneId
Central European Time (CET) - UTC+1.
final
CST ZoneId
Central Standard Time (CST) - UTC-6.
final
EDT ZoneId
Eastern Daylight Time (EDT) - UTC-4.
final
EEST ZoneId
Eastern European Summer Time (EEST) - UTC+3.
final
EET ZoneId
Eastern European Time (EET) - UTC+2.
final
EST ZoneId
Eastern Standard Time (EST) - UTC-5.
final
EUROPE_AMSTERDAM ZoneId
Amsterdam timezone (Europe/Amsterdam) - CET/CEST.
final
EUROPE_ATHENS ZoneId
Athens timezone (Europe/Athens) - EET/EEST.
final
EUROPE_BERLIN ZoneId
Berlin timezone (Europe/Berlin) - CET/CEST.
final
EUROPE_BRUSSELS ZoneId
Brussels timezone (Europe/Brussels) - CET/CEST.
final
EUROPE_BUCHAREST ZoneId
Bucharest timezone (Europe/Bucharest) - EET/EEST.
final
EUROPE_COPENHAGEN ZoneId
Copenhagen timezone (Europe/Copenhagen) - CET/CEST.
final
EUROPE_DUBLIN ZoneId
Dublin timezone (Europe/Dublin) - GMT/IST.
final
EUROPE_HELSINKI ZoneId
Helsinki timezone (Europe/Helsinki) - EET/EEST.
final
EUROPE_ISTANBUL ZoneId
Istanbul timezone (Europe/Istanbul) - TRT (no DST since 2016).
final
EUROPE_KIEV ZoneId
Kiev timezone (Europe/Kiev) - EET/EEST.
final
EUROPE_LISBON ZoneId
Lisbon timezone (Europe/Lisbon) - WET/WEST.
final
EUROPE_LONDON ZoneId
London timezone (Europe/London) - GMT/BST.
final
EUROPE_MADRID ZoneId
Madrid timezone (Europe/Madrid) - CET/CEST.
final
EUROPE_MOSCOW ZoneId
Moscow timezone (Europe/Moscow) - MSK (no DST since 2014).
final
EUROPE_OSLO ZoneId
Oslo timezone (Europe/Oslo) - CET/CEST.
final
EUROPE_PARIS ZoneId
Paris timezone (Europe/Paris) - CET/CEST.
final
EUROPE_PRAGUE ZoneId
Prague timezone (Europe/Prague) - CET/CEST.
final
EUROPE_REYKJAVIK ZoneId
Reykjavik timezone (Europe/Reykjavik) - GMT (no DST).
final
EUROPE_ROME ZoneId
Rome timezone (Europe/Rome) - CET/CEST.
final
EUROPE_STOCKHOLM ZoneId
Stockholm timezone (Europe/Stockholm) - CET/CEST.
final
EUROPE_VIENNA ZoneId
Vienna timezone (Europe/Vienna) - CET/CEST.
final
EUROPE_WARSAW ZoneId
Warsaw timezone (Europe/Warsaw) - CET/CEST.
final
EUROPE_ZURICH ZoneId
Zurich timezone (Europe/Zurich) - CET/CEST.
final
GMT ZoneId
Greenwich Mean Time (GMT) - equivalent to UTC.
final
MDT ZoneId
Mountain Daylight Time (MDT) - UTC-6.
final
MST ZoneId
Mountain Standard Time (MST) - UTC-7.
final
PACIFIC_AUCKLAND ZoneId
Auckland timezone (Pacific/Auckland) - NZST/NZDT.
final
PACIFIC_CHATHAM ZoneId
Chatham timezone (Pacific/Chatham) - CHAST/CHADT +12:45/+13:45.
final
PACIFIC_FIJI ZoneId
Fiji timezone (Pacific/Fiji) - FJT/FJST.
final
PACIFIC_GUAM ZoneId
Guam timezone (Pacific/Guam) - ChST (no DST).
final
PACIFIC_HONOLULU ZoneId
Honolulu timezone (Pacific/Honolulu) - HST (no DST).
final
PACIFIC_TAHITI ZoneId
Tahiti timezone (Pacific/Tahiti) - TAHT (no DST).
final
PDT ZoneId
Pacific Daylight Time (PDT) - UTC-7.
final
PST ZoneId
Pacific Standard Time (PST) - UTC-8.
final
UTC ZoneId
Coordinated Universal Time (UTC) - the primary time standard.
final
Z ZoneId
UTC timezone represented as 'Z' (Zulu time).
final

Static Methods

getAvailableZoneIds() Set<String>
Returns a comprehensive set of all supported timezone IDs.