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

◆ convert_from_utc()

static xtd::date_time xtd::time_zone_info::convert_from_utc ( const xtd::date_time date_time,
const xtd::time_zone_info destination_time_zone 
)
static

Converts a Coordinated Universal Time (UTC) to the time in a specified time zone.

Parameters
date_timeThe Coordinated Universal Time (UTC).
destination_time_zoneThe time zone to convert dateTime to.
Returns
The date and time in the destination time zone. Its xtd::date_time::kind property is xtd::date_time_kind::utc if destination_time_zone is xtd::date_time_kind::utc; otherwise, its xtd::date_time::kind property is xtd::date_time_kind::unspecified.