DateTimeExtensions.MonthsPerUnit Method

Gets the number of months in the specified unit.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static int MonthsPerUnit(
	this DateTimeUnit unit
)

Parameters

unit  DateTimeUnit
A DateTimeUnit value.

Return Value

Int32
The number of months in unit.

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