Skip to content
Documentation

ITimeZone Interface

Represents a time zone.

public interface ITimeZone : System.IEquatable<HAKOM.TSM.Net.Api.Time.TimeZones.ITimeZone>

Implements System.IEquatable<ITimeZone>

The info of the time zone.

System.TimeZoneInfo TimeZoneInfo { get; }

System.TimeZoneInfo

ITimeZone.TryGetNextDaylightSavingTransitionForDateTime(DateTimeOffset, Nullable<DateTimeOffset>) Method

Section titled “ITimeZone.TryGetNextDaylightSavingTransitionForDateTime(DateTimeOffset, Nullable<DateTimeOffset>) Method”

Tries to get the next daylight saving time transition date after the given dateTimeOffset. It is possible, that the time zone used to have a daylight saving time and not anymore. In such cases, or when DST is not supported, this method will return false. Otherwise the output parameter transitionDateTimeOffset will be set to the next transition date and the method will return true.

bool TryGetNextDaylightSavingTransitionForDateTime(System.DateTimeOffset dateTimeOffset, out System.Nullable<System.DateTimeOffset> transitionDateTimeOffset);

dateTimeOffset System.DateTimeOffset

The System.DateTimeOffset used to calculate the next transition date.

transitionDateTimeOffset System.Nullable<System.DateTimeOffset>

The next transition date.

System.Boolean
True, if the next date was found, otherwise false.

ITimeZone.TryGetPreviousDaylightSavingTransitionForDateTime(DateTimeOffset, Nullable<DateTimeOffset>) Method

Section titled “ITimeZone.TryGetPreviousDaylightSavingTransitionForDateTime(DateTimeOffset, Nullable<DateTimeOffset>) Method”

Tries to get the previous daylight saving time transition date before the given dateTimeOffset. It is possible, that the time zone used to have a daylight saving time and not anymore. In such cases, or when DST is not supported, this method will return false. Otherwise the output parameter transitionDateTimeOffset will be set to the previous transition date and the method will return true.

bool TryGetPreviousDaylightSavingTransitionForDateTime(System.DateTimeOffset dateTimeOffset, out System.Nullable<System.DateTimeOffset> transitionDateTimeOffset);

dateTimeOffset System.DateTimeOffset

The System.DateTimeOffset used to calculate the previous transition date.

transitionDateTimeOffset System.Nullable<System.DateTimeOffset>

The previous transition date.

System.Boolean
True, if the previous date was found, otherwise false.

© 2026 Volue.Version v0.6.38017 November 2026