|
static |
Converts a time from one time zone to another.
date_time | The date and time to convert. |
source_time_zone | The time zone of date_time. |
destination_time_zone | The time zone to convert date_time to. |
xtd::argument_exception | The xtd::date_time::kind property of the date_time parameter is xtd::date_time_kind::local, but the source_time_tone parameter does not equal xtd::date_time_kind::local. -or- The xtd::date_time::kind property of the date_time parameter is xtd::date_time_kind::utc, but the source_time_zone parameter does not equal xtd::date_time_kind::utc. -or- The date_time parameter is an invalid time (that is, it represents a time that does not exist because of a time zone's adjustment rules). |