System::TimeZoneInfo::ConvertTime Methode

TimeZoneInfo::ConvertTime(const DateTimeOffset&, const TimeZoneInfoPtr&) method

Convert time to the time in a specified time zone.

static DateTimeOffset System::TimeZoneInfo::ConvertTime(const DateTimeOffset &date_time_offset, const TimeZoneInfoPtr &destination_time_zone)
ParameterTypBeschreibung
date_time_offsetconst DateTimeOffset&Datum und Uhrzeit zum Konvertieren.
destination_time_zoneconst TimeZoneInfoPtr&Zielzeitzone.

ReturnValue

Konvertiertes Datum und Uhrzeit.

Siehe auch

TimeZoneInfo::ConvertTime(DateTime, const TimeZoneInfoPtr&) method

Convert time to the time in a specified time zone.

static DateTime System::TimeZoneInfo::ConvertTime(DateTime date_time, const TimeZoneInfoPtr &destination_time_zone)
ParameterTypBeschreibung
date_timeDateTimeDatum und Uhrzeit zum Konvertieren.
destination_time_zoneconst TimeZoneInfoPtr&Zielzeitzone.

ReturnValue

Konvertiertes Datum und Uhrzeit.

Siehe auch

TimeZoneInfo::ConvertTime(DateTime, const TimeZoneInfoPtr&, const TimeZoneInfoPtr&) method

Convert time from one time zone to another.

static DateTime System::TimeZoneInfo::ConvertTime(DateTime date_time, const TimeZoneInfoPtr &source_time_zone, const TimeZoneInfoPtr &destination_time_zone)
ParameterTypBeschreibung
date_timeDateTimeDatum und Uhrzeit zum Konvertieren.
source_time_zoneconst TimeZoneInfoPtr&Quellzeitzone.
destination_time_zoneconst TimeZoneInfoPtr&Zielzeitzone.

ReturnValue

Konvertiertes Datum und Uhrzeit.

Siehe auch