## TimeZone::GetUtcOffset method


Returns the UTC offset for the specified local time.

```cpp
virtual TimeSpan System::TimeZone::GetUtcOffset(DateTime time)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| time | DateTime | The time to calculate the UTC offset for |

### ReturnValue

The UTC offset for the specified local time

## See Also

* Class [TimeSpan](../../timespan/)
* Class [DateTime](../../datetime/)
* Class [TimeZone](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
