ZoneLocalMapping class

The result of mapping a LocalDateTime within a time zone, i.e. finding out at what 'global' time the "local" time occurred.

This class is used as the return type of DateTimeZone.mapLocal. It allows for finely-grained handling of the three possible results:

//todo: Markdown me!

Annotations
  • @immutable

Properties

count int
Gets the number of results within this mapping: the number of distinct ZonedDateTime values which map to the original LocalDateTime.
final
earlyInterval ZoneInterval
Gets the earlier ZoneInterval within this mapping.
final
hashCode int
The hash code for this object.
no setterinherited
lateInterval ZoneInterval
Gets the later ZoneInterval within this mapping.
final
localDateTime LocalDateTime
Gets the LocalDateTime which was mapped within the time zone.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zone DateTimeZone
Gets the DateTimeZone in which this mapping was performed.
final

Methods

first() ZonedDateTime
Returns a ZonedDateTime which maps to the original LocalDateTime in the mapped DateTimeZone: either the single result if the mapping is unambiguous, or the earlier result if the local date/time occurs twice in the time zone due to a time zone offset change such as an autumnal daylight saving transition.
last() ZonedDateTime
Returns a ZonedDateTime which maps to the original LocalDateTime in the mapped DateTimeZone: either the single result if the mapping is unambiguous, or the later result if the local date/time occurs twice in the time zone due to a time zone offset change such as an autumnal daylight saving transition.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
single() ZonedDateTime
Returns the single ZonedDateTime which maps to the original LocalDateTime in the mapped DateTimeZone.
toString() String
A string representation of this object.
inherited

Operators

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