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).

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
property bool IsFixedDateRule {
	bool get();
}

Property Value

Type: System::Boolean

true 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: