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

◆ time_of_day()

xtd::date_time xtd::time_zone_info::transition_time::time_of_day ( ) const
noexcept

Gets the hour, minute, and second at which the time change occurs.

Returns
The time of day at which the time change occurs.
Remarks
For transitions from standard time to daylight saving time, the xtd::time_zone_info::transition_time::time_of_day value represents the time of the transition in the time zone's standard time. For transitions from daylight saving time to standard time, it represents the time of the transition in the time zone's daylight saving time.
The xtd::time_zone_info::transition_time::time_of_day property defines only the time of a time change, but not its date. The date is determined by the xtd::time_zone_info::transition_time::month and xtd::time_zone_info::transition_time::day properties for fixed-rule changes, and by the xtd::time_zone_info::transition_time::month, xtd::time_zone_info::transition_time::week, and xtd::time_zone_info::transition_time::day_of_week properties for floating-rule changes. The date component of this xtd::date_time value is ignored; the value of the year, month, and day is always 1.
The xtd::time_zone_info::transition_time::time_of_day property is used for both fixed-date and floating-date transitions.