TimeZoneInfo::TransitionTime::IsFixedDateRule Property
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).
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::Booleantrue if the time change rule is fixed-date; false if the time change rule is floating-date.
A fixed-date rule indicates that the transition occurs on the same date and time of each year to which the adjustment rule applies. For example, a time change that occurs every November 3 follows a fixed-date rule. A floating-date rule indicates that the transition occurs on a specific day of a specific week of a specific month for each year to which the adjustment rule applies. For example, a time change that occurs on the first Sunday of November follows a floating-date rule.
The value of the IsFixedDateRule property determines which properties of a TimeZoneInfo::TransitionTime object have valid values. The following table indicates which properties are affected by the value of the IsFixedDateRule property.
TransitionTime property | IsFixedDateRule = true | IsFixedDateRule = false |
|---|---|---|
Day | Valid | Unused |
DayOfWeek | Unused | Valid |
Week | Unused | Valid |
Month | Valid | Valid |
TimeOfDay | Valid | Valid |
The following example lists the transition times to and from daylight saving time for all time zones that are available on the local system. For time zones with fixed-date rules, it displays transition time information from the properties of the TimeZoneInfo::TransitionTime object. For time zones without fixed-date rules, it uses a Calendar object that represents the current system calendar to determine the actual start and end dates of the transition. The example displays the results to the console.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.