timezone library
Contains information about time zones (mostly for internal use).
The important bits are exported from tempo, so you probably shouldn't need to import this directly.
See:
Classes
- TimeChangeRule
- A rule for determining what day and time a ZoneTransitionRule occurs at for a given year.
- TimeChangeRuleBuilder
- TimeZoneDatabase
- Contains all known time zones, and provides methods for finding them.
- TimeZoneDatabaseBuilder
- ZoneDescription
- Information about a time zone that may be helpful when trying to choose one.
- ZoneDescriptionBuilder
- ZoneRules
- Time zone rules for a specific location.
- ZoneRulesBuilder
- ZoneTransition
- A transition in the time for a time zone.
- ZoneTransitionBuilder
- ZoneTransitionRule
- A general rule for when the time changes in a time zone.
- ZoneTransitionRuleBuilder
Functions
-
allTimeZones(
) → List< ZoneDescription> - Returns a table of time zones with information usedful for choosing one.
-
timeZonesByProximity(
double latitude, double longitude, [String? country]) → List< ZoneDescription> - 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> - Provides a list of time zones relevant to a specific country.