ITimeZone Interface
Represents a time zone.
public interface ITimeZone : System.IEquatable<HAKOM.TSM.Net.Api.Time.TimeZones.ITimeZone>Implements System.IEquatable<ITimeZone>
Properties
Section titled “Properties”ITimeZone.TimeZoneInfo Property
Section titled “ITimeZone.TimeZoneInfo Property”The info of the time zone.
System.TimeZoneInfo TimeZoneInfo { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”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);Parameters
Section titled “Parameters”dateTimeOffset System.DateTimeOffset
The System.DateTimeOffset used to calculate the next transition date.
transitionDateTimeOffset System.Nullable<System.DateTimeOffset>
The next transition date.
Returns
Section titled “Returns”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);Parameters
Section titled “Parameters”dateTimeOffset System.DateTimeOffset
The System.DateTimeOffset used to calculate the previous transition date.
transitionDateTimeOffset System.Nullable<System.DateTimeOffset>
The previous transition date.
Returns
Section titled “Returns”System.Boolean
True, if the previous date was found, otherwise false.