System::TimeZoneInfo::GetUtcOffset method

TimeZoneInfo::GetUtcOffset(const DateTimeOffset&) const method

Calculates difference between time in this time zone and UTC time zone for a specified date and time.

TimeSpan System::TimeZoneInfo::GetUtcOffset(const DateTimeOffset &date_time_offset) const
ParameterTypeDescription
date_time_offsetconst DateTimeOffset&Date and time.

ReturnValue

Time difference between time zones.

See Also

TimeZoneInfo::GetUtcOffset(DateTime) const method

Calculates difference between time in this time zone and UTC time zone for a specified date and time.

TimeSpan System::TimeZoneInfo::GetUtcOffset(DateTime date_time) const
ParameterTypeDescription
date_timeDateTimeDate and time.

ReturnValue

Time difference between time zones.

See Also