TimeZoneAdjustmentRule class

Dart counterpart of System.TimeZoneInfo.AdjustmentRule.

Constructors

TimeZoneAdjustmentRule(DateTime? DateStart, DateTime? DateEnd, Duration StandardOffset, Duration DaylightDelta, TimeZoneTransitionTime? DaylightTransitionStart, TimeZoneTransitionTime? DaylightTransitionEnd)
Creates an adjustment rule.
const
TimeZoneAdjustmentRule.Standard(DateTime? DateStart, DateTime? DateEnd, Duration StandardOffset)
Creates an adjustment rule without daylight saving time.
const

Properties

DateEnd → DateTime?
Gets the local date/time until which the rule applies, exclusive (null = forever).
final
DateStart → DateTime?
Gets the local date/time from which the rule applies (null = since ever).
final
DaylightDelta → Duration
Gets the amount of time added to the standard offset during daylight saving time.
final
DaylightTransitionEnd → TimeZoneTransitionTime?
Gets the transition back to standard time (null when there is none).
final
DaylightTransitionStart → TimeZoneTransitionTime?
Gets the transition to daylight saving time (null when there is none).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
StandardOffset → Duration
Gets the standard offset to UTC while the rule is in effect.
final
SupportsDaylight → bool
Gets a value indicating whether the rule observes daylight saving time.
no setter

Methods

GetUtcOffset(DateTime wallClock) → Duration
Gets the offset to UTC in effect at the given local wall-clock time.
IsDaylightSavingTime(DateTime wallClock) → bool
Gets a value indicating whether the local wall-clock time is in daylight saving time.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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