ZoneInterval class

Represents a range of time for which a particular Offset applies.

Annotations
  • @immutable

Properties

end Instant
Gets the last Instant (exclusive) that the Offset applies.
no setter
hasEnd bool
Returns true if this zone interval has a fixed end point, or false if it extends to the end of time.
no setter
hashCode int
Serves as a hash function for a particular type.
no setteroverride
hasStart bool
Returns true if this zone interval has a fixed start point, or false if it extends to the beginning of time.
no setter
isoLocalEnd LocalDateTime
Gets the local end time of the interval, as a LocalDateTime in the ISO calendar.
no setter
isoLocalStart LocalDateTime
Gets the local start time of the interval, as a LocalDateTime in the ISO calendar.
no setter
name String
Gets the name of this offset period (e.g. PST or PDT).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savings Offset
Gets the daylight savings value for this period.
final
standardOffset Offset
Gets the standard offset for this period. This is the offset without any daylight savings contributions.
no setter
start Instant
// Initializes a new instance of the ZoneInterval class. // // name: The name of this offset period (e.g. PST or PDT). // start: The first Instant that the
no setter
totalTime Time
Gets the duration of this zone interval.
no setter
wallOffset Offset
Gets the offset from UTC for this period. This includes any daylight savings value.
final

Methods

contains(Instant instant) bool
Determines whether this period contains the given Instant in its range.
equals(ZoneInterval other) bool
Indicates whether the current object is equal to another object of the same type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a String that represents this instance.
override

Operators

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