Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java337 default boolean isLeapYear() { in isLeapYear() method
338 return getChronology().isLeapYear(getLong(YEAR)); in isLeapYear()
360 return (isLeapYear() ? 366 : 365); in lengthOfYear()
DMinguoChronology.java290 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in MinguoChronology
291 return IsoChronology.INSTANCE.isLeapYear(prolepticYear + YEARS_DIFFERENCE); in isLeapYear()
DThaiBuddhistChronology.java326 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in ThaiBuddhistChronology
327 return IsoChronology.INSTANCE.isLeapYear(prolepticYear - YEARS_DIFFERENCE); in isLeapYear()
DJapaneseChronology.java346 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in JapaneseChronology
347 return IsoChronology.INSTANCE.isLeapYear(prolepticYear); in isLeapYear()
DHijrahDate.java514 public boolean isLeapYear() { in isLeapYear() method in HijrahDate
515 return chrono.isLeapYear(prolepticYear); in isLeapYear()
DChronology.java546 boolean isLeapYear(long prolepticYear); in isLeapYear() method
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DBaseCalendar.java100 protected boolean isLeapYear(sun.util.calendar.CalendarDate date) { in isLeapYear() method in BaseCalendar
104 boolean isLeapYear(int normalizedYear) { in isLeapYear() method in BaseCalendar
DLocalGregorianCalendar.java98 public boolean isLeapYear(int gregorianYear) { in isLeapYear() method in LocalGregorianCalendar
102 public boolean isLeapYear(sun.util.calendar.Era era, int year) { in isLeapYear() method in LocalGregorianCalendar
DImmutableGregorianDate.java55 public boolean isLeapYear() { in isLeapYear() method in ImmutableGregorianDate
DCalendarDate.java61 public boolean isLeapYear() { in isLeapYear() method in CalendarDate
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java282 boolean leap = IsoChronology.INSTANCE.isLeapYear(year); in ofYearDay()
412 dom = (IsoChronology.INSTANCE.isLeapYear(year) ? 29 : 28); in create()
443 day = Math.min(day, IsoChronology.INSTANCE.isLeapYear(year) ? 29 : 28); in resolvePreviousValid()
575 …WEEK_OF_MONTH: return ValueRange.of(1, getMonth() == Month.FEBRUARY && isLeapYear() == false ? 4 :… in range()
782 return getMonth().firstDayOfYear(isLeapYear()) + day - 1; in getDayOfYear()
823 public boolean isLeapYear() { in isLeapYear() method in LocalDate
824 return IsoChronology.INSTANCE.isLeapYear(year); in isLeapYear()
839 return (isLeapYear() ? 29 : 28); in lengthOfMonth()
859 return (isLeapYear() ? 366 : 365); in lengthOfYear()
1836 if (isLeapYear() == false) { in toEpochDay()
DYearMonth.java559 public boolean isLeapYear() { in isLeapYear() method in YearMonth
560 return IsoChronology.INSTANCE.isLeapYear(year); in isLeapYear()
585 return getMonth().length(isLeapYear()); in lengthOfMonth()
596 return (isLeapYear() ? 366 : 365); in lengthOfYear()
/libcore/ojluni/src/main/java/sun/util/calendar/
DImmutableGregorianDate.java61 public boolean isLeapYear() { in isLeapYear() method in ImmutableGregorianDate
62 return date.isLeapYear(); in isLeapYear()
DLocalGregorianCalendar.java377 public boolean isLeapYear(int gregorianYear) { in isLeapYear() method in LocalGregorianCalendar
381 public boolean isLeapYear(Era era, int year) { in isLeapYear() method in LocalGregorianCalendar
383 return isLeapYear(year); in isLeapYear()
386 return isLeapYear(gyear); in isLeapYear()
DAbstractCalendar.java174 date.setLeapYear(isLeapYear(date)); in getCalendarDate()
277 protected abstract boolean isLeapYear(CalendarDate date); in isLeapYear() method in AbstractCalendar
DJulianCalendar.java231 boolean isLeapYear(int jyear) { in isLeapYear() method in JulianCalendar
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java316 … return (IsoChronology.INSTANCE.isLeapYear(year) ? ValueRange.of(1, 91) : ValueRange.of(1, 90)); in rangeRefinedBy()
332 … return doy - QUARTER_DAYS[((moy - 1) / 3) + (IsoChronology.INSTANCE.isLeapYear(year) ? 4 : 0)]; in getFrom()
593 … if (date.getDayOfWeek() == THURSDAY || (date.getDayOfWeek() == WEDNESDAY && date.isLeapYear())) { in getWeekRange()
614 if ((firstMonDoy0 == -3 || (firstMonDoy0 == -2 && date.isLeapYear())) == false) { in getWeek()
631 doy = doy - 363 - (date.isLeapYear() ? 1 : 0); in getWeekBasedYear()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java271 public void test_isLeapYear(int year, boolean isLeapYear) { in test_isLeapYear() argument
272 assertEquals(IsoChronology.INSTANCE.isLeapYear(year), isLeapYear); in test_isLeapYear() local
DTCKLocalDate.java778 assertEquals(LocalDate.of(1999, 1, 1).isLeapYear(), false);
779 assertEquals(LocalDate.of(2000, 1, 1).isLeapYear(), true);
780 assertEquals(LocalDate.of(2001, 1, 1).isLeapYear(), false);
781 assertEquals(LocalDate.of(2002, 1, 1).isLeapYear(), false);
782 assertEquals(LocalDate.of(2003, 1, 1).isLeapYear(), false);
783 assertEquals(LocalDate.of(2004, 1, 1).isLeapYear(), true);
784 assertEquals(LocalDate.of(2005, 1, 1).isLeapYear(), false);
786 assertEquals(LocalDate.of(1500, 1, 1).isLeapYear(), false);
787 assertEquals(LocalDate.of(1600, 1, 1).isLeapYear(), true);
788 assertEquals(LocalDate.of(1700, 1, 1).isLeapYear(), false);
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java134 day = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? 6 : 5; in resolvePreviousValid()
152 …range = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? CopticChronology.DOM_RANGE_LEAP : Co… in CopticDate()
184 return (isLeapYear() ? 6 : 5); in lengthOfMonth()
DCopticChronology.java207 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in CopticChronology
DTCKThaiBuddhistChronology.java303 …olepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, boolean isLeapYear) { in test_prolepticYear() argument
311 …_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, boolean isLeapYear) { in test_isLeapYear() argument
312 … assertEquals(ThaiBuddhistChronology.INSTANCE.isLeapYear(expectedProlepticYear), isLeapYear) ; in test_isLeapYear() local
313 …assertEquals(ThaiBuddhistChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedPr… in test_isLeapYear()
317 if (isLeapYear) { in test_isLeapYear()
DTCKMinguoChronology.java296 …olepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, boolean isLeapYear) { in test_prolepticYear() argument
304 …_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, boolean isLeapYear) { in test_isLeapYear() argument
305 assertEquals(MinguoChronology.INSTANCE.isLeapYear(expectedProlepticYear), isLeapYear); in test_isLeapYear() local
306 …assertEquals(MinguoChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepti… in test_isLeapYear()
310 if (isLeapYear) { in test_isLeapYear()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java115 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in ChronologyTest.FakeChronology
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java1193 assert jd.isLeapYear() == d.isLeapYear(); in getActualMinimum()
1405 (date.isLeapYear() && (magic == 5 || magic == 12))) { in getActualMaximum()
1736 if (d.isLeapYear()) { in computeFields()
1758 if (d.isLeapYear()) { in computeFields()
1774 if (jdate.isLeapYear()) { in computeFields()
2212 return jdate.isLeapYear() ? in monthLength()

12