code: function(year, month) {
  			if (year.year) {
  				month = year.month();
  				year = year.year();
  			}
  			this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
  			return (month === 12 && this.leapYear(year) ? 30 : // Adar I
  					(month === 8 && mod(this.daysInYear(year), 10) === 5 ? 30 : // Cheshvan in shlemah year
  					(month === 9 && mod(this.daysInYear(year), 10) === 3 ? 29 : // Kislev in chaserah year
  					this.daysPerMonth[month - 1])));
  		}
docs: Retrieve the number of days in a month.
  @memberof HebrewCalendar
  @param year {CDate|number} The date to examine or the year of the month.
  @param [month] {number} The month.
  @return {number} The number of days in this month.
  @throws Error if an invalid month/year or a different calendar used.