Date Time Extensions.Months Per Unit Method
Gets the number of months in the specified unit.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The number of months in unit.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static int MonthsPerUnit(
this DateTimeUnit unit
)
Parameters
- unit DateTimeUnit
- A DateTimeUnit value.
Return Value
Int32The number of months in unit.