[This is preliminary documentation and is subject to change.]
Creates an offset with the specified number of hours, which may be negative.


- hours (Int32)
- The number of hours to represent in the new offset.

A new Offset representing the given value.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | The result of the operation is outside the range of Offset. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)