getDaysInYear method

int getDaysInYear(
  1. int year
)

Returns the number of days in the given year.

  • year: The year to determine the number of days in

Returns: The number of days in the given year.

  • ArgumentOutOfRangeException: The given year is invalid for this calendar.

Implementation

int getDaysInYear(int year) {
  Preconditions.checkArgumentRange('year', year, minYear, maxYear);
  return _yearMonthDayCalculator.getDaysInYear(year);
}