ConvertTimeBySystemTimeZoneId()
Contents
[
Hide
]TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime, const String&) method
Convert time to the time in a specified time zone.
static DateTime System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime date_time, const String &destination_time_zone_id)
Arguments
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time to convert. |
destination_time_zone_id | const String& | Identifier of the destination time zone. |
Return Value
Converted date and time.
TimeZoneInfo::ConvertTimeBySystemTimeZoneId(const DateTimeOffset&, const String&) method
Convert time to the time in a specified time zone.
static DateTimeOffset System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(const DateTimeOffset &date_time_offset, const String &destination_time_zone_id)
Arguments
Parameter | Type | Description |
---|---|---|
date_time_offset | const DateTimeOffset& | Date and time to convert. |
destination_time_zone_id | const String& | Identifier of the destination time zone. |
Return Value
Converted date and time.
TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime, const String&, const String&) method
Convert time to the time in a specified time zone.
static DateTime System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime date_time, const String &source_time_zone_id, const String &destination_time_zone_id)
Arguments
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time to convert. |
source_time_zone_id | const String& | Identifier of the source time zone. |
destination_time_zone_id | const String& | Identifier of the destination time zone. |
Return Value
Converted date and time.
See Also
- Class DateTime
- Class String
- Class TimeZoneInfo
- Class DateTimeOffset
- Namespace System
- Library Aspose.Slides