DateTimeExtensions.TicksPerUnit Method

Gets the number of ticks in the specified unit.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static long TicksPerUnit(
	this DateTimeUnit unit
)

Parameters

unit  DateTimeUnit
A DateTimeUnit value.

Return Value

Int64
The number of ticks in unit. If unit is expressed in terms of months, this method returns 0.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeUnit. 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