TimeZoneDatabase class abstract

Contains all known time zones, and provides methods for finding them.

Constructors

TimeZoneDatabase()
Constructs a new TimeZoneDatabase.
factory
TimeZoneDatabase.build(void updates(TimeZoneDatabaseBuilder))
Constructs a new TimeZoneDatabase using custom data.
factory

Properties

descriptions → BuiltList<ZoneDescription>
A table of additional information used for choosing a time zone.
no setter
descriptionsByCountry → BuiltListMultimap<String, ZoneDescription>
A list of additional information used for choosing a time zone, indexed by country.
no setter
hashCode int
The hash code for this object.
no setterinherited
rules → BuiltMap<String, ZoneRules>
A map of all known time zone rules indexed by zone id.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
The version of the ARIN database this contains.
no setter

Methods

byProximity(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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(TimeZoneDatabaseBuilder)) TimeZoneDatabase
Rebuilds the instance.
inherited
toBuilder() TimeZoneDatabaseBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<TimeZoneDatabase>
no setter