[This is preliminary documentation and is subject to change.]
Creates an offset with the specified number of hours and minutes.


A new Offset representing the given value.

The result simply takes the hours and minutes and converts each component into milliseconds
separately. As a result, a negative offset should usually be obtained by making both arguments
negative. For example, to obtain "three hours and ten minutes behind UTC" you might call
Offset.FromHoursAndMinutes(-3, -10).

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)