System::TimeZoneInfo::ConvertTimeToUtc method
TimeZoneInfo::ConvertTimeToUtc(DateTime) method
Converts time to UTC-time.
static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time)
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time to convert. |
ReturnValue
Converted date and time.
See Also
- Class DateTime
- Class TimeZoneInfo
- Namespace System
- Library Aspose.PUB for C++
TimeZoneInfo::ConvertTimeToUtc(DateTime, const TimeZoneInfoPtr&) method
Converts time to UTC-time.
static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time, const TimeZoneInfoPtr &source_time_zone)
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time to convert. |
source_time_zone | const TimeZoneInfoPtr& | Source time zone. |
ReturnValue
Converted date and time.
See Also
- Class DateTime
- Typedef TimeZoneInfoPtr
- Class TimeZoneInfo
- Namespace System
- Library Aspose.PUB for C++