/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDate.java | 337 default boolean isLeapYear() { in isLeapYear() method 338 return getChronology().isLeapYear(getLong(YEAR)); in isLeapYear() 360 return (isLeapYear() ? 366 : 365); in lengthOfYear()
|
D | MinguoChronology.java | 290 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in MinguoChronology 291 return IsoChronology.INSTANCE.isLeapYear(prolepticYear + YEARS_DIFFERENCE); in isLeapYear()
|
D | ThaiBuddhistChronology.java | 326 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in ThaiBuddhistChronology 327 return IsoChronology.INSTANCE.isLeapYear(prolepticYear - YEARS_DIFFERENCE); in isLeapYear()
|
D | JapaneseChronology.java | 346 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in JapaneseChronology 347 return IsoChronology.INSTANCE.isLeapYear(prolepticYear); in isLeapYear()
|
D | HijrahDate.java | 514 public boolean isLeapYear() { in isLeapYear() method in HijrahDate 515 return chrono.isLeapYear(prolepticYear); in isLeapYear()
|
D | Chronology.java | 546 boolean isLeapYear(long prolepticYear); in isLeapYear() method
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | BaseCalendar.java | 100 protected boolean isLeapYear(sun.util.calendar.CalendarDate date) { in isLeapYear() method in BaseCalendar 104 boolean isLeapYear(int normalizedYear) { in isLeapYear() method in BaseCalendar
|
D | LocalGregorianCalendar.java | 98 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
|
D | ImmutableGregorianDate.java | 55 public boolean isLeapYear() { in isLeapYear() method in ImmutableGregorianDate
|
D | CalendarDate.java | 61 public boolean isLeapYear() { in isLeapYear() method in CalendarDate
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 282 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()
|
D | YearMonth.java | 559 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/ |
D | ImmutableGregorianDate.java | 61 public boolean isLeapYear() { in isLeapYear() method in ImmutableGregorianDate 62 return date.isLeapYear(); in isLeapYear()
|
D | LocalGregorianCalendar.java | 377 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()
|
D | AbstractCalendar.java | 174 date.setLeapYear(isLeapYear(date)); in getCalendarDate() 277 protected abstract boolean isLeapYear(CalendarDate date); in isLeapYear() method in AbstractCalendar
|
D | JulianCalendar.java | 231 boolean isLeapYear(int jyear) { in isLeapYear() method in JulianCalendar
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | IsoFields.java | 316 … 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/ |
D | TestIsoChronology.java | 271 public void test_isLeapYear(int year, boolean isLeapYear) { in test_isLeapYear() argument 272 assertEquals(IsoChronology.INSTANCE.isLeapYear(year), isLeapYear); in test_isLeapYear() local
|
D | TCKLocalDate.java | 778 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/ |
D | CopticDate.java | 134 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()
|
D | CopticChronology.java | 207 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in CopticChronology
|
D | TCKThaiBuddhistChronology.java | 303 …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()
|
D | TCKMinguoChronology.java | 296 …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/ |
D | ChronologyTest.java | 115 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in ChronologyTest.FakeChronology
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 1193 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()
|