## 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)
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| date_time_offset | const DateTimeOffset\& | Дата и время для преобразования. |
| destination_time_zone | const TimeZoneInfoPtr\& | Часовой пояс назначения. |

### ReturnValue

Преобразованные дата и время.

## См. также

* Class [DateTimeOffset](../../datetimeoffset/)
* Typedef [TimeZoneInfoPtr](../../timezoneinfoptr/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PDF 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)
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| date_time | DateTime | Дата и время для преобразования. |
| destination_time_zone | const TimeZoneInfoPtr\& | Часовой пояс назначения. |

### ReturnValue

Преобразованные дата и время.

## См. также

* Class [DateTime](../../datetime/)
* Typedef [TimeZoneInfoPtr](../../timezoneinfoptr/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PDF 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)
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| 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.PDF for C++](../../../)
