Searched refs:isLeap (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearTest.java | 35 assertFalse(Year.isLeap(1900)); in test_isLeap() 36 assertFalse(Year.isLeap(1999)); in test_isLeap() 37 assertTrue(Year.isLeap(2000)); in test_isLeap() 38 assertFalse(Year.isLeap(2001)); in test_isLeap() 39 assertFalse(Year.isLeap(2002)); in test_isLeap() 40 assertFalse(Year.isLeap(2003)); in test_isLeap() 41 assertTrue(Year.isLeap(2004)); in test_isLeap() 42 assertFalse(Year.isLeap(2005)); in test_isLeap()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYear.java | 445 assertEquals(Year.of(1999).isLeap(), false); in test_isLeap() 446 assertEquals(Year.of(2000).isLeap(), true); in test_isLeap() 447 assertEquals(Year.of(2001).isLeap(), false); in test_isLeap() 449 assertEquals(Year.of(2007).isLeap(), false); in test_isLeap() 450 assertEquals(Year.of(2008).isLeap(), true); in test_isLeap() 451 assertEquals(Year.of(2009).isLeap(), false); in test_isLeap() 452 assertEquals(Year.of(2010).isLeap(), false); in test_isLeap() 453 assertEquals(Year.of(2011).isLeap(), false); in test_isLeap() 454 assertEquals(Year.of(2012).isLeap(), true); in test_isLeap() 456 assertEquals(Year.of(2095).isLeap(), false); in test_isLeap() [all …]
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | BaseCalendar.java | 423 boolean isLeap; in getCalendarDateFromFixedDate() 427 isLeap = isLeapYear(year); in getCalendarDateFromFixedDate() 434 isLeap = isLeapYear(year); in getCalendarDateFromFixedDate() 436 gdate.setCache (year, jan1, isLeap ? 366 : 365); in getCalendarDateFromFixedDate() 441 if (isLeap) { in getCalendarDateFromFixedDate() 445 priorDays += isLeap ? 1 : 2; in getCalendarDateFromFixedDate() 454 if (isLeap && month >= MARCH) { in getCalendarDateFromFixedDate() 464 gdate.setLeapYear(isLeap); in getCalendarDateFromFixedDate()
|
D | JulianCalendar.java | 195 boolean isLeap = CalendarUtils.isJulianLeapYear(year); in getCalendarDateFromFixedDate() 197 priorDays += isLeap ? 1 : 2; in getCalendarDateFromFixedDate() 212 jdate.setLeapYear(isLeap); in getCalendarDateFromFixedDate()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 309 public static boolean isLeap(long year) { in isLeap() method in Year 521 public boolean isLeap() { in isLeap() method in Year 522 return Year.isLeap(year); in isLeap() 544 return isLeap() ? 366 : 365; in length()
|
D | MonthDay.java | 503 return (day == 29 && month == 2 && Year.isLeap(year) == false) == false; in isValidYear()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | IsoChronology.java | 556 dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); in resolveYMD()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistChronology.java | 313 …ology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear - YDIFF).isLeap()); in test_isLeapYear()
|
D | TCKMinguoChronology.java | 306 …ology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear + YDIFF).isLeap()); in test_isLeapYear()
|
D | TCKJapaneseChronology.java | 405 …eseChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear).isLeap()); in test_isLeapYear()
|