Home
last modified time | relevance | path

Searched refs:gregorianYear (Results 1 – 7 of 7) 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/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java180 …id test_transitions(JapaneseEra era, int yearOfEra, int month, int dayOfMonth, int gregorianYear) { in test_transitions() argument
181 assertEquals(JAPANESE.prolepticYear(era, yearOfEra), gregorianYear); in test_transitions() local
184 JapaneseDate jdate2 = JapaneseDate.of(gregorianYear, month, dayOfMonth); in test_transitions()
/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.java2198 private int monthLength(int month, int gregorianYear) { in monthLength() argument
2199 return CalendarUtils.isGregorianLeapYear(gregorianYear) ? in monthLength()