Class MultiTransitionDateTimeZone
Time zone with multiple transitions, created via a builder.
Since 1.1.x
Availability netstandard2.0
Inherited Members
Namespace: NodaTime.Testing.TimeZones
Assembly: NodaTime.Testing.dll
Syntax
public sealed class MultiTransitionDateTimeZone : DateTimeZone
Properties
Intervals
Gets the zone intervals within this time zone, in chronological order, spanning the whole time line.
Since 1.1.x
Availability netstandard2.0
Declaration
public ReadOnlyCollection<ZoneInterval> Intervals { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<ZoneInterval> | The zone intervals within this time zone, in chronological order, spanning the whole time line. |
Transitions
Gets the transition points between intervals.
Since 1.1.x
Availability netstandard2.0
Declaration
public ReadOnlyCollection<Instant> Transitions { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<Instant> | The transition points between intervals. |
Methods
GetZoneInterval(Instant)
Gets the zone interval for the given instant; the range of time around the instant in which the same Offset
applies (with the same split between standard time and daylight saving time, and with the same offset).
Since 1.1.x
Availability netstandard2.0
Declaration
public override ZoneInterval GetZoneInterval(Instant instant)
Parameters
Type | Name | Description |
---|---|---|
Instant | instant | The Instant to query. |
Returns
Type | Description |
---|---|
ZoneInterval | The defined ZoneInterval. |
Overrides
Remarks
This will always return a valid zone interval, as time zones cover the whole of time.