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


[Convert](../../convert/) time to the time in a specified time zone.

```cpp
static DateTimeOffset System::TimeZoneInfo::ConvertTime(const DateTimeOffset &date_time_offset, const TimeZoneInfoPtr &destination_time_zone)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| date_time_offset | const DateTimeOffset\& | التاريخ والوقت للتحويل. |
| destination_time_zone | const TimeZoneInfoPtr\& | منطقة زمنية الوجهة. |

### ReturnValue

التاريخ والوقت المحوَّل.

## انظر أيضًا

* Class [DateTimeOffset](../../datetimeoffset/)
* Typedef [TimeZoneInfoPtr](../../timezoneinfoptr/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## TimeZoneInfo::ConvertTime(DateTime, const TimeZoneInfoPtr\&) method


[Convert](../../convert/) time to the time in a specified time zone.

```cpp
static DateTime System::TimeZoneInfo::ConvertTime(DateTime date_time, const TimeZoneInfoPtr &destination_time_zone)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| date_time | DateTime | التاريخ والوقت للتحويل. |
| destination_time_zone | const TimeZoneInfoPtr\& | منطقة زمنية الوجهة. |

### ReturnValue

التاريخ والوقت المحوَّل.

## انظر أيضًا

* Class [DateTime](../../datetime/)
* Typedef [TimeZoneInfoPtr](../../timezoneinfoptr/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## TimeZoneInfo::ConvertTime(DateTime, const TimeZoneInfoPtr\&, const TimeZoneInfoPtr\&) method


[Convert](../../convert/) time from one time zone to another.

```cpp
static DateTime System::TimeZoneInfo::ConvertTime(DateTime date_time, const TimeZoneInfoPtr &source_time_zone, const TimeZoneInfoPtr &destination_time_zone)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| date_time | DateTime | التاريخ والوقت للتحويل. |
| source_time_zone | const TimeZoneInfoPtr\& | منطقة زمنية المصدر. |
| destination_time_zone | const TimeZoneInfoPtr\& | منطقة زمنية الوجهة. |

### ReturnValue

التاريخ والوقت المحوَّل.

## انظر أيضًا

* Class [DateTime](../../datetime/)
* Typedef [TimeZoneInfoPtr](../../timezoneinfoptr/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
