Provides information about a specific time change, such as the change from daylight saving time to standard time or vice versa, in a particular time zone.
Public Properties | |
| auto | day () const noexcept -> xtd::uint32 |
| Gets the day on which the time change occurs. | |
| auto | day_of_week () const noexcept -> xtd::day_of_week |
| Gets the day of the week on which the time change occurs. | |
| auto | is_fixed_rule () const noexcept -> bool |
| 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). | |
| auto | month () const noexcept -> xtd::uint32 |
| Gets the month in which the time change occurs. | |
| auto | time_of_day () const noexcept -> xtd::date_time |
| Gets the hour, minute, and second at which the time change occurs. | |
| auto | week () const noexcept -> xtd::uint32 |
| Gets the week of the month in which a time change occurs. | |
Public Static Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const transition_time &tt) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| static auto | create_fixed_date_rule (xtd::date_time time_of_day, xtd::uint32 month, xtd::uint32 day) -> transition_time |
| Defines a time change that uses a fixed-date rule (that is, a time change that occurs on a specific day of a specific month). | |
| static auto | create_floating_date_rule (xtd::date_time time_of_day, xtd::uint32 month, xtd::uint32 week, xtd::day_of_week day_of_weekday_of_week) -> transition_time |
| Defines a time change that uses a floating-date rule (that is, a time change that occurs on a specific day of a specific week of a specific month). | |
Additional Inherited Members | |
| virtual auto | equals (const transition_time &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
nodiscardnoexcept |
Gets the day on which the time change occurs.
|
nodiscardnoexcept |
Gets the day of the week on which the time change occurs.
|
nodiscardnoexcept |
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).
| 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 |
|
nodiscardnoexcept |
Gets the month in which the time change occurs.
|
nodiscardnoexcept |
Gets the hour, minute, and second at which the time change occurs.
|
nodiscardnoexcept |
Gets the week of the month in which a time change occurs.
| If the Week property value is | The transition occurs on |
|---|---|
| 1 | The first occurrence of the xtd::time_zone_info::transition_time::day_of_week value in xtd::time_zone_info::transition_time::month. |
| 2 | The second occurrence of the xtd::time_zone_info::transition_time::day_of_week value in xtd::time_zone_info::transition_time::month. |
| 3 | The third occurrence of the xtd::time_zone_info::transition_time::day_of_week value in xtd::time_zone_info::transition_time::month. |
| 4 | The fourth occurrence of the xtd::time_zone_info::transition_time::day_of_week value in xtd::time_zone_info::transition_time::month. |
| 5 | The last occurrence of the xtd::time_zone_info::transition_time::day_of_week value in xtd::time_zone_info::transition_time::month. |
|
staticnodiscard |
Defines a time change that uses a fixed-date rule (that is, a time change that occurs on a specific day of a specific month).
| time_of_day | The time at which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::ttime_of_day property. |
| month | The month in which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::month property. |
| day | The day of the month on which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::day property. |
| xtd::argument_exception | The time_of_day parameter has a non-default date component. -or- The time_of_day parameter's Kind property is not unspecified. -or- The time_of_day parameter does not represent a whole number of milliseconds. |
| xtd::argument_out_of_range_exception | The month parameter is less than 1 or greater than 12. -or- The day parameter is less than 1 or greater than 31. |
|
staticnodiscard |
Defines a time change that uses a floating-date rule (that is, a time change that occurs on a specific day of a specific week of a specific month).
| time_of_day | The time at which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::ttime_of_day property. |
| month | The month in which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::month property. |
| week | The week of the month in which the time change occurs. Its value can range from 1 to 5, with 5 representing the last week of the month. This parameter corresponds to the xtd::time_zone_info::transition_time::week property |
| day_of_week | The day of the week on which the time change occurs. This parameter corresponds to the xtd::time_zone_info::transition_time::day_of_week property. |
| xtd::argument_exception | The time_of_day parameter has a non-default date component. -or- The time_of_day parameter's Kind property is not unspecified. -or- The time_of_day parameter does not represent a whole number of milliseconds. |
| xtd::argument_out_of_range_exception | The month parameter is less than 1 or greater than 12. -or- The week parameter is less than 1 or greater than 5. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| tt | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.