Struct TimeZoneTransition
- Namespace
- Arc4u
- Assembly
- Arc4u.dll
A change of the UTC offset of a time zone, for example the start or the end of the daylight saving time.
public readonly record struct TimeZoneTransition : IEquatable<TimeZoneTransition>
- Implements
- Inherited Members
Constructors
TimeZoneTransition(DateTimeOffset, TimeSpan, TimeSpan, bool)
A change of the UTC offset of a time zone, for example the start or the end of the daylight saving time.
public TimeZoneTransition(DateTimeOffset Instant, TimeSpan OffsetBefore, TimeSpan OffsetAfter, bool IsDaylightSavingTimeAfter)
Parameters
InstantDateTimeOffsetThe UTC instant of the change.
OffsetBeforeTimeSpanThe UTC offset in effect just before
Instant.OffsetAfterTimeSpanThe UTC offset in effect from
Instant.IsDaylightSavingTimeAfterboolWhether the daylight saving time is in effect from
Instant.
Properties
Instant
The UTC instant of the change.
public DateTimeOffset Instant { get; init; }
Property Value
IsDaylightSavingTimeAfter
Whether the daylight saving time is in effect from Instant.
public bool IsDaylightSavingTimeAfter { get; init; }
Property Value
LocalTimeBefore
Gets the wall-clock time of the change, read on a clock still showing the time before the change (for example 02:00 for the start of the summer time in Brussels and 03:00 for its end).
public DateTime LocalTimeBefore { get; }
Property Value
OffsetAfter
The UTC offset in effect from Instant.
public TimeSpan OffsetAfter { get; init; }
Property Value
OffsetBefore
The UTC offset in effect just before Instant.
public TimeSpan OffsetBefore { get; init; }