## DateTimeOffset::ToOffset method


Replace current object offset by the specified offset.

```cpp
DateTimeOffset System::DateTimeOffset::ToOffset(TimeSpan offset) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| offset | TimeSpan | UTC-offset. |

### ReturnValue

Current [DateTimeOffset](../) object converted to the date and time with specified offset.

## See Also

* Class [DateTimeOffset](../)
* Class [TimeSpan](../../timespan/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
