Home
last modified time | relevance | path

Searched refs:isValidYear (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DMonthDay.java502 public boolean isValidYear(int year) { in isValidYear() method in MonthDay
659 return LocalDate.of(year, month, isValidYear(year) ? day : 28); in atYear()
DYear.java535 return monthDay != null && monthDay.isValidYear(year); in isValidMonthDay()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKMonthDay.java616 assertEquals(test.isValidYear(2007), true); in test_isValidYear_june()
622 assertEquals(test.isValidYear(2007), false); in test_isValidYear_febNonLeap()
628 assertEquals(test.isValidYear(2008), true); in test_isValidYear_febLeap()