xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_fixed_rule()

bool xtd::time_zone_info::transition_time::is_fixed_rule ( ) const
noexcept

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
true if the time change rule is fixed-date; false if the time change rule is floating-date.
Remarks
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 xtd::time_zone_info::transition_time::is_fixed_date_rule property determines which properties of a xtd::time_zone_info::transition_time object have valid values. The following table indicates which properties are affected by the value of the xtd::time_zone_info::transition_time::is_fixed_date_rule property.
transition_time property is_fixed_date_rule = true is_fixed_date_rule = false
transition_time::day Valid Unused
transition_time::day_of_week Unused Valid
transition_time::week Unused Valid
transition_time::month Valid Valid
transition_time::time_of_day Valid Valid