Noda Time
PlusHours Method (hours)
NamespacesNodaTimeLocalTimePlusHours(Int64)

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

Returns a new LocalTime representing the current value with the given number of hours added.
Declaration Syntax
C#Visual BasicVisual C++
public LocalTime PlusHours(
	long hours
)
Public Function PlusHours ( _
	hours As Long _
) As LocalTime
public:
LocalTime PlusHours(
	long long hours
)
Parameters
hours (Int64)
The number of hours to add
Return Value
The current value plus the given number of hours.
Remarks
If the value goes past the start or end of the day, it wraps - so 11pm plus two hours is 1am, for example.

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