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.4
C#
The number of months in unit.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static int MonthsPerUnit(
this DateTimeUnit unit
)
Parameters
- unit DateTimeUnit
- A DateTimeUnit value.
Return Value
Int32The number of months in unit.