ZoneTransitionRule class abstract

A general rule for when the time changes in a time zone.

This is used to determine future transitions after the fixed ZoneTransition values.

Constructors

ZoneTransitionRule([void updates(ZoneTransitionRuleBuilder)])
factory

Properties

dstName String?
The name of the daylight savings time zone (if any). For example, "PDT", "EDT", "CEST". Null for fixed-offset rules.
no setter
dstOffset ZoneOffset?
The daylight savings offset from UTC. Defaults to stdOffset + 1 hour if dstName is set. Null for fixed-offset rules.
no setter
dstStartRule TimeChangeRule?
The rule for when the time switches to daylight savings in a given year. Null for fixed-offset rules.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stdName String
The name of the standard time zone. For example, "PST", "EST", "CET".
no setter
stdOffset ZoneOffset
The offset of the standard time zone from UTC.
no setter
stdStartRule TimeChangeRule?
The rule for when the time switches to standard time in a given year. Null for fixed-offset rules.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetFor(HasInstant instant) NamedZoneOffset
rebuild(dynamic updates(ZoneTransitionRuleBuilder)) ZoneTransitionRule
Rebuilds the instance.
inherited
toBuilder() ZoneTransitionRuleBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<ZoneTransitionRule>
no setter