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

◆ date_end()

const xtd::date_time & xtd::time_zone_info::adjustement_rule::date_end ( ) const
noexcept

Gets the date when the adjustment rule ceases to be in effect.

Returns
A xtd::date_time value that indicates the end date of the adjustment rule.
Remarks
The value of the xtd::time_zone_info::adjustement_rule::date_end property is a date value without a time component.
Because the end date of the current adjustment rule is typically not known, you can assign
date_time::max_value().date() 
to the xtd::time_zone_info::adjustement_rule::date_end property when you create a custom adjustment rule.
Warning
Unless there is a compelling reason to do otherwise, you should define the adjustment rule's end date to occur within the time interval during which the time zone observes standard time. Unless there is a compelling reason to do so, you should not define the adjustment rule's end date to occur within the time interval during which the time zone observes daylight saving time. For example, if a time zone's transition from daylight saving time occurs on the third Sunday of March and its transition to daylight saving time occurs on the first Sunday of October, the effective end date of the adjustment rule should not be December 31 of a particular year, since that date occurs within the period of daylight saving time.