TimeZoneInfo::TransitionTime::Week Property
Gets the week of the month in which a time change occurs.
Assembly: mscorlib (in mscorlib.dll)
The value of the Week property is used only for time changes with floating-date rules. Valid values can range from 1 to 5.
TheMonth property defines the month in which the time change occurs. The Week property determines the week on which the transition occurs. The DayOfWeek property defines the day of the week on which the transition occurs. The value of the Week property is determined as shown in the following table.
If the Week property value is | The transition occurs on |
|---|---|
1 | |
2 | |
3 | |
4 | |
5 |
For example, if a transition occurs on the first Sunday of March, the value of the Week property is 1. If it occurs on the last Sunday of March, the value of the Week property is 5.
The following example enumerates the time zones found on the local computer and displays transition time information for all floating-date transitions. The time information includes the week of the month in which the time change occurs. The example also defines a WeekOfMonth enumeration to display a string that represents the ordinal value of the Week property rather than an integer.
Available since 3.5