/** * @stable ICU 2.0 */ protected int handleGetYearLength(int eyear) { return isLeapYear(eyear) ? 366 : 365; }
/** * @stable ICU 2.0 */ protected int handleGetMonthLength(int extendedYear, int month) { // If the month is out of range, adjust it into range, and // modify the extended year value accordingly. if (month < 0 || month > 11) { int[] rem = new int[1]; extendedYear += floorDivide(month, 12, rem); month = rem[0]; } return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; }