Home
last modified time | relevance | path

Searched refs:gregorianYear (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarUtils.java42 public static final boolean isGregorianLeapYear(int gregorianYear) { in isGregorianLeapYear() argument
43 return (((gregorianYear % 4) == 0) in isGregorianLeapYear()
44 && (((gregorianYear % 100) != 0) || ((gregorianYear % 400) == 0))); in isGregorianLeapYear()
DLocalGregorianCalendar.java61 private int gregorianYear = FIELD_UNDEFINED; field in LocalGregorianCalendar.Date
66 gregorianYear = FIELD_UNDEFINED; in setEra()
73 gregorianYear += localYear; in addYear()
80 gregorianYear = FIELD_UNDEFINED; in setYear()
86 return gregorianYear; in getNormalizedYear()
90 this.gregorianYear = normalizedYear; in setNormalizedYear()
364 public boolean isLeapYear(int gregorianYear) { in isLeapYear() argument
365 return CalendarUtils.isGregorianLeapYear(gregorianYear); in isLeapYear()