## TimeZoneInfo::GetUtcOffset(DateTime) const method


Calculates difference between time in this time zone and UTC time zone for a specified date and time.

```cpp
TimeSpan System::TimeZoneInfo::GetUtcOffset(DateTime date_time) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| date_time | DateTime | Date and time. |

### ReturnValue

Time difference between time zones.

## See Also

* Class [TimeSpan](../../timespan/)
* Class [DateTime](../../datetime/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## TimeZoneInfo::GetUtcOffset(const DateTimeOffset\&) const method


Calculates difference between time in this time zone and UTC time zone for a specified date and time.

```cpp
TimeSpan System::TimeZoneInfo::GetUtcOffset(const DateTimeOffset &date_time_offset) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| date_time_offset | const DateTimeOffset\& | Date and time. |

### ReturnValue

Time difference between time zones.

## See Also

* Class [TimeSpan](../../timespan/)
* Class [DateTimeOffset](../../datetimeoffset/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
