CalendarSystem GetMaxYearOfEra Method Noda Time

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

Returns the maximum valid year-of-era in the given era.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public int GetMaxYearOfEra(
	Era era
)

Return Value

Type: OnlineInt32
The maximum valid year in the given era.
Exceptions

Remarks

Note that depending on the calendar system, it's possible that only part of the returned year falls within the given era. It is also possible that the returned value represents the earliest year of the era rather than the latest year. (See the BC era in the Gregorian calendar, for example.)
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also