Table of Contents

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

Instant DateTimeOffset

The UTC instant of the change.

OffsetBefore TimeSpan

The UTC offset in effect just before Instant.

OffsetAfter TimeSpan

The UTC offset in effect from Instant.

IsDaylightSavingTimeAfter bool

Whether the daylight saving time is in effect from Instant.

Properties

Instant

The UTC instant of the change.

public DateTimeOffset Instant { get; init; }

Property Value

DateTimeOffset

IsDaylightSavingTimeAfter

Whether the daylight saving time is in effect from Instant.

public bool IsDaylightSavingTimeAfter { get; init; }

Property Value

bool

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

DateTime

OffsetAfter

The UTC offset in effect from Instant.

public TimeSpan OffsetAfter { get; init; }

Property Value

TimeSpan

OffsetBefore

The UTC offset in effect just before Instant.

public TimeSpan OffsetBefore { get; init; }

Property Value

TimeSpan