Gets the number of ticks in the specified unit.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static long TicksPerUnit(
this DateTimeUnit unit
)
<ExtensionAttribute>
Public Shared Function TicksPerUnit (
unit As DateTimeUnit
) As Long
public:
[ExtensionAttribute]
static long long TicksPerUnit(
DateTimeUnit unit
)
[<ExtensionAttribute>]
static member TicksPerUnit :
unit : DateTimeUnit -> int64
Parameters
- unit
- Type: Extreme.DataAnalysisDateTimeUnit
A DateTimeUnit value.
Return Value
Type:
Int64The 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).
Reference