Defines the date range and transition rules for a daylight-saving adjustment.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public sealed class TimeZoneInfo.AdjustmentRule : IEquatable<TimeZoneInfo.AdjustmentRule>, ISerializable, IDeserializationCallback
Inheritance: objectTimeZoneInfo.AdjustmentRule
Implements:
Properties
Gets the inclusive last date on which this rule applies.
public DateTime DateEnd { get; }
Gets the inclusive first date on which this rule applies.
public DateTime DateStart { get; }
Gets the offset added to the base UTC offset while daylight time is in effect; the delta can be negative.
public TimeSpan DaylightDelta { get; }
Gets the annual transition back to standard time.
public TimeZoneInfo.TransitionTime DaylightTransitionEnd { get; }
Gets the annual transition into daylight time.
public TimeZoneInfo.TransitionTime DaylightTransitionStart { get; }
Methods
Creates a rule that applies a daylight offset between the specified annual transitions and date bounds.
public static TimeZoneInfo.AdjustmentRule CreateAdjustmentRule(DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd)
The first date on which the rule applies; it must have an unspecified kind and midnight time.
dateEndDateTimeThe last date on which the rule applies; it must have an unspecified kind and midnight time.
daylightDeltaTimeSpanThe offset added to the base UTC offset during daylight time, in whole minutes.
daylightTransitionStartTimeZoneInfo.TransitionTimeThe transition into daylight time.
daylightTransitionEndTimeZoneInfo.TransitionTimeThe transition back to standard time.
Returns:The adjustment rule for the supplied dates and transitions.
Exceptions: ArgumentExceptionThe date bounds are invalid, the transitions are identical, or the offset contains seconds.
ArgumentOutOfRangeExceptiondaylightDelta is outside the supported UTC-offset range.
Determines whether another rule has the same date range, daylight delta, and transition rules.
public bool Equals(TimeZoneInfo.AdjustmentRule other)
The rule to compare with this instance.
Returns:Implements:
Returns a hash code derived from the rule's start date.