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

◆ convert_time_to_utc()

static xtd::date_time xtd::time_zone_info::convert_time_to_utc ( const xtd::date_time date_time)
static

Converts the specified date and time to Coordinated Universal Time (UTC).

Parameters
dateTimeThe date and time to convert.
Returns
date_time The Coordinated Universal Time (UTC) that corresponds to the dateTime parameter. The xtd::date_time value's Kind property is always set to xtd::date_timeKind.Utc.
Exceptions
ArgumentNullExceptiondateTime is null.
ArgumentExceptiontime_zone_info::Local().IsInvalidxtd::date_time(dateTime) returns true.