struct TimeZoneInfo.TransitionTime
Provides information about a specific time change, such as the change from daylight saving time to standard time or vice versa, in a particular time zone.
public static TimeZoneInfo.TransitionTime CreateFixedDateRule( DateTime timeOfDay, int month, int day )
Defines a time change that uses a fixed-date rule (that is, a time change that occurs on a specific day of a specific month).
timeOfDayThe time at which the time change occurs. This parameter corresponds to the property.monthThe month in which the time change occurs. This parameter corresponds to the property.dayThe day of the month on which the time change occurs. This parameter corresponds to the property.- Returns Data about the time change.
public static TimeZoneInfo.TransitionTime CreateFloatingDateRule( DateTime timeOfDay, int month, int week, DayOfWeek dayOfWeek )
Defines a time change that uses a floating-date rule (that is, a time change that occurs on a specific day of a specific week of a specific month).
timeOfDayThe time at which the time change occurs. This parameter corresponds to the property.monthThe month in which the time change occurs. This parameter corresponds to the property.weekThe week of the month in which the time change occurs. Its value can range from 1 to 5, with 5 representing the last week of the month. This parameter corresponds to the property.dayOfWeekThe day of the week on which the time change occurs. This parameter corresponds to the property.- Returns Data about the time change.
public int Day { get; }
Gets the day on which the time change occurs.
- Returns The day on which the time change occurs.
public DayOfWeek DayOfWeek { get; }
Gets the day of the week on which the time change occurs.
- Returns The day of the week on which the time change occurs.
public bool Equals( object obj )
Determines whether an object has identical values to the current object.
objAn object to compare with the current object.- Returns if the two objects are equal; otherwise, .
public bool Equals( TimeZoneInfo.TransitionTime other )
Determines whether the current object has identical values to a second object.
otherAn object to compare to the current instance.- Returns if the two objects have identical property values; otherwise, .
public bool IsFixedDateRule { get; }
Gets a value indicating whether the time change occurs at a fixed date and time (such as November 1) or a floating date and time (such as the last Sunday of October).
- Returns if the time change rule is fixed-date; if the time change rule is floating-date.
public int Month { get; }
Gets the month in which the time change occurs.
- Returns The month in which the time change occurs.
public static bool op_Equality( TimeZoneInfo.TransitionTime t1, TimeZoneInfo.TransitionTime t2 )
Determines whether two specified objects are equal.
t1The first object to compare.t2The second object to compare.- Returns if and have identical values; otherwise, .
public static bool op_Inequality( TimeZoneInfo.TransitionTime t1, TimeZoneInfo.TransitionTime t2 )
Determines whether two specified objects are not equal.
t1The first object to compare.t2The second object to compare.- Returns if and have any different member values; otherwise, .
public DateTime TimeOfDay { get; }
Gets the hour, minute, and second at which the time change occurs.
- Returns The time of day at which the time change occurs.
public int Week { get; }
Gets the week of the month in which a time change occurs.
- Returns The week of the month in which the time change occurs.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.