getMaxYearOfEra method

int getMaxYearOfEra(
  1. Era era
)

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

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.)

  • era: The era in which to find the greatest year

Returns: The maximum valid year in the given era.

  • ArgumentException: era is not an era used in this calendar.

Implementation

int getMaxYearOfEra(Era era) => _eraCalculator.getMaxYearOfEra(era);