Location class

A Location maps time instants to the zone in use at that time. Typically, the Location represents the collection of time offsets in use in a geographical area, such as CEST and CET for central Europe.

Constructors

Location(String name, List<int> transitionAt, List<int> transitionZone, List<TimeZone> zones)

Properties

currentTimeZone TimeZone
TimeZone for the current time.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Location name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionAt List<int>
Transition time, in milliseconds since 1970 UTC.
final
transitionZone List<int>
The index of the zone that goes into effect at that time.
final
zones List<TimeZone>
TimeZones at this Location.
final

Methods

lookupTimeZone(int millisecondsSinceEpoch) TzInstant
lookup for TimeZone and its boundaries for an instant in time expressed as milliseconds since January 1, 1970 00:00:00 UTC.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
timeZone(int millisecondsSinceEpoch) TimeZone
timeZone method returns TimeZone in use at an instant in time expressed as milliseconds since January 1, 1970 00:00:00 UTC.
timeZoneFromLocal(int millisecondsSinceEpoch) TimeZone
timeZoneFromLocal method returns TimeZone in use at an instant in time expressed as milliseconds since January 1, 1970 00:00:00.
toString() String
A string representation of this object.
override
translate(int millisecondsSinceEpoch) int
translate instant in time expressed as milliseconds since January 1, 1970 00:00:00 UTC to this Location.
translateToUtc(int millisecondsSinceEpoch) int
translate instant in time expressed as milliseconds since January 1, 1970 00:00:00 to UTC.

Operators

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