Noda Time
FromHours Method (hours)
NamespacesNodaTimeOffsetFromHours(Int32)

[This is preliminary documentation and is subject to change.]

Creates an offset with the specified number of hours, which may be negative.
Declaration Syntax
C#Visual BasicVisual C++
public static Offset FromHours(
	int hours
)
Public Shared Function FromHours ( _
	hours As Integer _
) As Offset
public:
static Offset FromHours(
	int hours
)
Parameters
hours (Int32)
The number of hours to represent in the new offset.
Return Value
A new Offset representing the given value.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe result of the operation is outside the range of Offset.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)