Describes when a daylight-saving transition occurs, using either a fixed calendar date or a weekday pattern.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public struct TimeZoneInfo.TransitionTime : IEquatable<TimeZoneInfo.TransitionTime>, ISerializable, IDeserializationCallback
Implements:
Properties
Gets the calendar day for a fixed-date rule, or 1 for a floating-date rule.
public int Day { get; }
Gets the weekday used by a floating-date rule.
public DayOfWeek DayOfWeek { get; }
Gets whether this rule uses a fixed day of the month rather than a weekday pattern.
public bool IsFixedDateRule { get; }
Gets the transition time of day, stored with the date January 1, year 1.
public DateTime TimeOfDay { get; }
Methods
Creates a transition that occurs on a specified day of each year's month. If that month has fewer days, the transition uses its final day.
public static TimeZoneInfo.TransitionTime CreateFixedDateRule(DateTime timeOfDay, int month, int day)
The time of day, with an unspecified kind and a date of January 1, year 1.
monthintThe month of the transition, from 1 through 12.
dayintThe day of the month, from 1 through 31.
Returns:The fixed-date transition rule.
Exceptions: ArgumentExceptiontimeOfDay has a different date, a non-unspecified kind, or sub-millisecond precision.
month or day is outside its supported range.
Creates a transition that occurs on a specified weekday occurrence in each year's month; week 5 means the last occurrence.
public static TimeZoneInfo.TransitionTime CreateFloatingDateRule(DateTime timeOfDay, int month, int week, DayOfWeek dayOfWeek)
The time of day, with an unspecified kind and a date of January 1, year 1.
monthintThe month of the transition, from 1 through 12.
weekintThe weekday occurrence, from 1 through 5; 5 selects the final occurrence.
dayOfWeekDayOfWeekThe weekday on which the transition occurs.
Returns:The floating-date transition rule.
Exceptions: ArgumentExceptiontimeOfDay has a different date, a non-unspecified kind, or sub-millisecond precision.
month, week, or dayOfWeek is outside its supported range.
Compares the month, time, and rule-specific date pattern of another transition value.
public bool Equals(TimeZoneInfo.TransitionTime other)
The transition rule to compare with this value.
Returns:Implements:
Operators
Determines whether two transition rules describe different transitions.
public static bool operator !=(TimeZoneInfo.TransitionTime left, TimeZoneInfo.TransitionTime right)
The first transition rule.
rightTimeZoneInfo.TransitionTimeThe second transition rule.
Returns:Determines whether two transition rules describe the same transition.
public static bool operator ==(TimeZoneInfo.TransitionTime left, TimeZoneInfo.TransitionTime right)
The first transition rule.
rightTimeZoneInfo.TransitionTimeThe second transition rule.
Returns: