Time zone lookups topic

These functions provide different ways of listing the available time zones. They all return a list of ZoneDescription objects, which contains an ID string suitable for passing to ZonedDateTime along with other information that may be helpful in choosing a time zone.

Classes

ZoneDescription Time zone lookups
Information about a time zone that may be helpful when trying to choose one.

Functions

allTimeZones() List<ZoneDescription> Time zone lookups
Returns a table of time zones with information useful for choosing one.
timeZonesByProximity(double latitude, double longitude, [String? country]) List<ZoneDescription> Time zone lookups
Provides a list of time zones sorted by proximity to a given set of geographic coordinates. Optionally filters by country.
timeZonesForCountry(String country) List<ZoneDescription> Time zone lookups
Provides a list of time zones relevant to a specific country.