Noda Time
FromYears Method (years)
NamespacesNodaTimePeriodFromYears(Int64)

[This is preliminary documentation and is subject to change.]

Creates a period representing the specified number of years.
Declaration Syntax
C#Visual BasicVisual C++
public static Period FromYears(
	long years
)
Public Shared Function FromYears ( _
	years As Long _
) As Period
public:
static Period^ FromYears(
	long long years
)
Parameters
years (Int64)
The number of years in the new period
Return Value
A period consisting of the given number of years.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)