DstTransition class

When daylight-saving time starts or ends in a year: the nth weekday of month (negative nth counts from the end) at minutes past midnight, measured in local standard time, or in UTC when utc.

Constructors

DstTransition(int month, int nth, int weekday, int minutes, {bool utc = false})
Creates a transition rule.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
minutes → int
Minutes after midnight.
final
month → int
Month.
final
nth → int
Week position (1..4, or -1 for last).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
utc → bool
Whether minutes is in UTC (EU rules) instead of local standard time.
final
weekday → int
Weekday.
final

Methods

instant(int year, Duration before) → DateTime
The UTC instant of this transition in year for a zone whose standard offset is standard and whose offset before the change is before.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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