New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public struct TimeZoneInfo.TransitionTime : IEquatable<TimeZoneInfo.TransitionTime>, ISerializable, IDeserializationCallback

Implements: IDeserializationCallbackIEquatable<TimeZoneInfo.TransitionTime>ISerializable

Properties

Gets the calendar day for a fixed-date rule, or 1 for a floating-date rule.

C#
public int Day { get; }

Gets the weekday used by a floating-date rule.

C#
public DayOfWeek DayOfWeek { get; }

Gets whether this rule uses a fixed day of the month rather than a weekday pattern.

C#
public bool IsFixedDateRule { get; }

Gets the month in which the transition occurs.

C#
public int Month { get; }

Gets the transition time of day, stored with the date January 1, year 1.

C#
public DateTime TimeOfDay { get; }

Gets the occurrence number for a floating-date rule; 5 denotes the last occurrence in the month.

C#
public int Week { 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.

C#
public static TimeZoneInfo.TransitionTime CreateFixedDateRule(DateTime timeOfDay, int month, int day)
Parameters:timeOfDayDateTime

The time of day, with an unspecified kind and a date of January 1, year 1.

monthint

The month of the transition, from 1 through 12.

dayint

The day of the month, from 1 through 31.

Returns:

TimeZoneInfo.TransitionTime

The fixed-date transition rule.

Exceptions: ArgumentException

timeOfDay has a different date, a non-unspecified kind, or sub-millisecond precision.

ArgumentOutOfRangeException

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.

C#
public static TimeZoneInfo.TransitionTime CreateFloatingDateRule(DateTime timeOfDay, int month, int week, DayOfWeek dayOfWeek)
Parameters:timeOfDayDateTime

The time of day, with an unspecified kind and a date of January 1, year 1.

monthint

The month of the transition, from 1 through 12.

weekint

The weekday occurrence, from 1 through 5; 5 selects the final occurrence.

dayOfWeekDayOfWeek

The weekday on which the transition occurs.

Returns:

TimeZoneInfo.TransitionTime

The floating-date transition rule.

Exceptions: ArgumentException

timeOfDay has a different date, a non-unspecified kind, or sub-millisecond precision.

ArgumentOutOfRangeException

month, week, or dayOfWeek is outside its supported range.

Determines whether another object is an equal transition rule.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this value.

Returns:

bool

true if it is a transition rule with the same date pattern and time; otherwise, false.

Overrides: ValueType.Equals(object)

Compares the month, time, and rule-specific date pattern of another transition value.

C#
public bool Equals(TimeZoneInfo.TransitionTime other)
Parameters:otherTimeZoneInfo.TransitionTime

The transition rule to compare with this value.

Returns:

bool

true if the transition rules match; otherwise, false.

Implements: IEquatable<TimeZoneInfo.TransitionTime>.Equals(TimeZoneInfo.TransitionTime)

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

Operators

Determines whether two transition rules describe different transitions.

C#
public static bool operator !=(TimeZoneInfo.TransitionTime left, TimeZoneInfo.TransitionTime right)
Parameters:leftTimeZoneInfo.TransitionTime

The first transition rule.

rightTimeZoneInfo.TransitionTime

The second transition rule.

Returns:

bool

true if the rules differ; otherwise, false.

Determines whether two transition rules describe the same transition.

C#
public static bool operator ==(TimeZoneInfo.TransitionTime left, TimeZoneInfo.TransitionTime right)
Parameters:leftTimeZoneInfo.TransitionTime

The first transition rule.

rightTimeZoneInfo.TransitionTime

The second transition rule.

Returns:

bool

true if the rules are equal; otherwise, false.