Home
last modified time | relevance | path

Searched refs:gregorianYear (Results 1 – 6 of 6) 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.java55 private int gregorianYear = FIELD_UNDEFINED; field in LocalGregorianCalendar.Date
61 gregorianYear = FIELD_UNDEFINED; in setEra()
69 gregorianYear += localYear; in addYear()
77 gregorianYear = FIELD_UNDEFINED; in setYear()
84 return gregorianYear; in getNormalizedYear()
89 this.gregorianYear = normalizedYear; in setNormalizedYear()
377 public boolean isLeapYear(int gregorianYear) { in isLeapYear() argument
378 return CalendarUtils.isGregorianLeapYear(gregorianYear); in isLeapYear()
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java357 int gregorianYear = jera.getPrivateEra().getSinceDate().getYear() + yearOfEra - 1; in prolepticYear() local
359 return gregorianYear; in prolepticYear()
361 if (gregorianYear >= Year.MIN_VALUE && gregorianYear <= Year.MAX_VALUE) { in prolepticYear()
365 return gregorianYear; in prolepticYear()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DLocalGregorianCalendar.java98 public boolean isLeapYear(int gregorianYear) { in isLeapYear() argument
161 private int gregorianYear = -2147483648; // 0x80000000 field in LocalGregorianCalendar.Date
DCalendarUtils.java35 public static final boolean isGregorianLeapYear(int gregorianYear) { in isGregorianLeapYear() argument
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java2199 private int monthLength(int month, int gregorianYear) { in monthLength() argument
2200 return CalendarUtils.isGregorianLeapYear(gregorianYear) ? in monthLength()