Home
last modified time | relevance | path

Searched refs:isLeapYear (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/util/
DGrego.java60 public static final boolean isLeapYear(int year) { in isLeapYear() method in Grego
72 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
98 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
137 boolean isLeap = isLeapYear(year); in dayToFields()
DGregorianCalendar.java399 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in add()
496 boolean leapYear = isLeapYear(fields[YEAR]); in fullFieldsCalc()
527 leapYear = isLeapYear(fields[YEAR]); in fullFieldsCalc()
564 - (isLeapYear(fields[YEAR] - 1) ? 2 : 1)) >= getMinimalDaysInFirstWeek() ? 53 in fullFieldsCalc()
722 boolean leapYear = isLeapYear(year); in computeTime()
786 … && (fields[DAY_OF_YEAR] < 1 || fields[DAY_OF_YEAR] > (365 + (isLeapYear(year) ? 1 in computeTime()
865 return daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in daysInMonth()
877 int daysInYear = isLeapYear(year) ? 366 : 365; in daysInYear()
1072 days = days + 365 + (isLeapYear(year) ? 1 : 0); in getOffset()
1083 boolean leapYear = isLeapYear(year); in getOffset()
[all …]
DSimpleTimeZone.java347 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) { in getOffset()
376 if (startMonth == Calendar.FEBRUARY && isLeapYear( in getOffset()
419 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) { in getOffset()
454 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) { in getOffset()
530 private boolean isLeapYear(int year) { in isLeapYear() method in SimpleTimeZone
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java501 .isLeapYear(1998)); in test_isLeapYearI()
503 .isLeapYear(2000)); in test_isLeapYearI()