## TimeZone::GetUtcOffset method


返回指定本地时间的 UTC 偏移量。

```cpp
virtual TimeSpan System::TimeZone::GetUtcOffset(DateTime time)=0
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 时间 | DateTime | 用于计算 UTC 偏移量的时间 |

### ReturnValue

指定本地时间的 UTC 偏移量

## 另见

* Class [TimeSpan](../../timespan/)
* Class [DateTime](../../datetime/)
* Class [TimeZone](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
