Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/sun/util/calendar/
DBaseCalendar.java265 date.setLeapYear(isLeapYear(bdate.getNormalizedYear())); in normalize()
307 return isLeapYear(((Date)date).getNormalizedYear()) ? 366 : 365; in getYearLength()
337 if (month == FEBRUARY && isLeapYear(year)) { in getMonthLength()
351 + (isLeapYear(year) ? in getDayOfYear()
383 cache.setCache(year, jan1, isLeapYear(year) ? 366 : 365); in getFixedDate()
406 days -= isLeapYear(year) ? 1 : 2; in getFixedDate()
411 cache.setCache(year, days, isLeapYear(year) ? 366 : 365); in getFixedDate()
431 isLeap = isLeapYear(year); in getCalendarDateFromFixedDate()
438 isLeap = isLeapYear(year); in getCalendarDateFromFixedDate()
534 protected boolean isLeapYear(CalendarDate date) { in isLeapYear() method in BaseCalendar
[all …]
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/chrono/
DChronoLocalDate.java340 default boolean isLeapYear() { in isLeapYear() method
341 return getChronology().isLeapYear(getLong(YEAR)); in isLeapYear()
363 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()
DIsoChronology.java324 if (IsoChronology.INSTANCE.isLeapYear(prolepticYear) == false) { in epochSecond()
344 dom = (IsoChronology.INSTANCE.isLeapYear(year) ? 29 : 28); in numberOfDaysOfMonth()
476 public boolean isLeapYear(long prolepticYear) { in isLeapYear() method in IsoChronology
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()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java287 boolean leap = IsoChronology.INSTANCE.isLeapYear(year); in ofYearDay()
443 dom = (IsoChronology.INSTANCE.isLeapYear(year) ? 29 : 28); in create()
474 day = Math.min(day, IsoChronology.INSTANCE.isLeapYear(year) ? 29 : 28); in resolvePreviousValid()
605 …WEEK_OF_MONTH: return ValueRange.of(1, getMonth() == Month.FEBRUARY && isLeapYear() == false ? 4 :… in range()
811 return getMonth().firstDayOfYear(isLeapYear()) + day - 1; in getDayOfYear()
852 public boolean isLeapYear() { in isLeapYear() method in LocalDate
853 return IsoChronology.INSTANCE.isLeapYear(year); in isLeapYear()
868 return (isLeapYear() ? 29 : 28); in lengthOfMonth()
888 return (isLeapYear() ? 366 : 365); in lengthOfYear()
1961 if (isLeapYear() == false) { in toEpochDay()
DYearMonth.java560 public boolean isLeapYear() { in isLeapYear() method in YearMonth
561 return IsoChronology.INSTANCE.isLeapYear(year); in isLeapYear()
586 return getMonth().length(isLeapYear()); in lengthOfMonth()
597 return (isLeapYear() ? 366 : 365); in lengthOfYear()
/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
DAbstractCalendar.java92 protected abstract boolean isLeapYear(sun.util.calendar.CalendarDate date); in isLeapYear() method in AbstractCalendar
DImmutableGregorianDate.java55 public boolean isLeapYear() { in isLeapYear() method in ImmutableGregorianDate
/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.java823 assertEquals(LocalDate.of(1999, 1, 1).isLeapYear(), false);
824 assertEquals(LocalDate.of(2000, 1, 1).isLeapYear(), true);
825 assertEquals(LocalDate.of(2001, 1, 1).isLeapYear(), false);
826 assertEquals(LocalDate.of(2002, 1, 1).isLeapYear(), false);
827 assertEquals(LocalDate.of(2003, 1, 1).isLeapYear(), false);
828 assertEquals(LocalDate.of(2004, 1, 1).isLeapYear(), true);
829 assertEquals(LocalDate.of(2005, 1, 1).isLeapYear(), false);
831 assertEquals(LocalDate.of(1500, 1, 1).isLeapYear(), false);
832 assertEquals(LocalDate.of(1600, 1, 1).isLeapYear(), true);
833 assertEquals(LocalDate.of(1700, 1, 1).isLeapYear(), false);
[all …]
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java323 … return (IsoChronology.INSTANCE.isLeapYear(year) ? ValueRange.of(1, 91) : ValueRange.of(1, 90)); in rangeRefinedBy()
339 … return doy - QUARTER_DAYS[((moy - 1) / 3) + (IsoChronology.INSTANCE.isLeapYear(year) ? 4 : 0)]; in getFrom()
618 … if (date.getDayOfWeek() == THURSDAY || (date.getDayOfWeek() == WEDNESDAY && date.isLeapYear())) { in getWeekRange()
639 if ((firstMonDoy0 == -3 || (firstMonDoy0 == -2 && date.isLeapYear())) == false) { in getWeek()
656 doy = doy - 363 - (date.isLeapYear() ? 1 : 0); in getWeekBasedYear()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java135 day = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? 6 : 5; in resolvePreviousValid()
153 …range = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? CopticChronology.DOM_RANGE_LEAP : Co… in CopticDate()
185 return (isLeapYear() ? 6 : 5); in lengthOfMonth()
DCopticChronology.java208 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

12