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

◆ convert_to_utc() [1/2]

static xtd::date_time xtd::time_zone_info::convert_to_utc ( const xtd::date_time date_time,
const xtd::time_zone_info source_time_zone 
)
static

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

Parameters
date_timeThe date and time to convert.
source_time_zoneThe time zone of dateTime.
Returns
The Coordinated Universal Time (UTC) that corresponds to the date_time parameter. The xtd::date_time object's xtd::date_time::kind property is always set to xtd::date_time_kind::utc.