code: static int getMonthLength(int month, int year) {
        Integer[] newMonths = getAdjustedMonthLength(year);
        return newMonths[month].intValue();
      }
docs: Returns month length.
  
  @param month  month (0-based)
  @param year  year
  @return month length