DateTimeExtensions.EndOfHour Method

Returns the end of the hour that contains the specified instant.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static DateTime EndOfHour(
	this DateTime date
)

Parameters

date  DateTime
An instant.

Return Value

DateTime
The instant at the end of the hour that contains date.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also