Home
last modified time | relevance | path

Searched refs:getEra (Results 1 – 25 of 28) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java78 assertEquals(JapaneseEra.MEIJI, JapaneseDate.from(LocalDate.of(1873, 1, 1)).getEra()); in test_JapaneseDate_getEra()
79 assertEquals(JapaneseEra.TAISHO, JapaneseDate.from(LocalDate.of(1913, 1, 1)).getEra()); in test_JapaneseDate_getEra()
80 assertEquals(SHOWA, JapaneseDate.from(LocalDate.of(1927, 1, 1)).getEra()); in test_JapaneseDate_getEra()
81 assertEquals(JapaneseEra.HEISEI, JapaneseDate.from(LocalDate.of(1990, 1, 1)).getEra()); in test_JapaneseDate_getEra()
146 assertEquals("Heisei", heiseiDate.getEra().toString()); in test_JapaneseEras_calendarsDotProperties()
147 assertEquals("Reiwa", reiwaDate.getEra().toString()); in test_JapaneseEras_calendarsDotProperties()
DThaiBuddhistChronologyTest.java79 assertEquals(ThaiBuddhistEra.BEFORE_BE, ThaiBuddhistDate.of(-1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra()
80 assertEquals(ThaiBuddhistEra.BE, ThaiBuddhistDate.of(1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra()
DMinguoChronologyTest.java79 assertEquals(MinguoEra.BEFORE_ROC, MinguoDate.of(-1, 1, 1).getEra()); in test_MinguoDate_getEra()
80 assertEquals(MinguoEra.ROC, MinguoDate.of(1, 1, 1).getEra()); in test_MinguoDate_getEra()
DHijrahChronologyTest.java37 assertEquals(HijrahEra.AH, HijrahDate.of(1300, 1, 1).getEra()); in test_HijrahDate_getEra()
DIsoChronologyTest.java58 assertEquals(expectedEra, localDate.getEra()); in test_dateYear()
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarDate.java97 public Era getEra() { in getEra() method in CalendarDate
381 && getEra() == date.getEra(); in isSameDate()
400 return (getEra() == that.getEra() in equals()
419 Era e = getEra(); in hashCode()
DLocalGregorianCalendar.java59 if (getEra() != era) { in setEra()
105 Era era = getEra(); in toString()
249 Era era = ldate.getEra(); in validate()
258 if (tmp.getEra() != era) { in validate()
364 Era era = ldate.getEra(); in normalizeYear()
DImmutableGregorianDate.java41 public Era getEra() { in getEra() method in ImmutableGregorianDate
42 return date.getEra(); in getEra()
DJulianCalendar.java74 if (getEra() == eras[BCE]) { in getNormalizedYear()
98 Era era = getEra(); in toString()
DCalendarSystem.java299 public abstract Era getEra(String eraName); in getEra() method in CalendarSystem
DAbstractCalendar.java65 public Era getEra(String eraName) { in getEra() method in AbstractCalendar
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java603 d.setEra(jdate.getEra()); in roll()
803 if (!(d.getEra() == jdate.getEra() && d.getYear() == jdate.getYear())) { in roll()
810 if (!(d.getEra() == jdate.getEra() && d.getYear() == jdate.getYear())) { in roll()
1237 jd.setEra(d.getEra()); in getActualMinimum()
1313 if (date.getEra() == d.getEra() && date.getYear() == d.getYear()) { in getActualMaximum()
1347 if (date.getEra() == d.getEra() && date.getYear() == d.getYear()) { in getActualMaximum()
1371 if (date.getEra() == jd.getEra() && date.getYear() == jd.getYear()) { in getActualMaximum()
1375 } else if (date.getEra() == null && date.getYear() == getMinimum(YEAR)) { in getActualMaximum()
1380 jd.setEra(d.getEra()); in getActualMaximum()
1429 if (!(date.getEra() == jd.getEra() && date.getYear() == jd.getYear())) { in getActualMaximum()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseDate.java288 if (era.getPrivateEra() != jdate.getEra() || yearOfEra != jdate.getYear()) { in ofYearDay()
328 this.era = JapaneseEra.toJapaneseEra(jdate.getEra()); in JapaneseDate()
372 public JapaneseEra getEra() { in getEra() method in JapaneseDate
606 return withYear(getEra(), year); in withYear()
DChronoLocalDate.java322 default Era getEra() { in getEra() method
DChronoLocalDateImpl.java436 .append(getEra()) in toString()
DThaiBuddhistDate.java234 public ThaiBuddhistEra getEra() { in getEra() method in ThaiBuddhistDate
DMinguoDate.java234 public MinguoEra getEra() { in getEra() method in MinguoDate
DJapaneseChronology.java497 if (result.getEra() != era && result.get(YEAR_OF_ERA) > 1 && yoe > 1) { in resolveYMD()
DHijrahDate.java309 public HijrahEra getEra() { in getEra() method in HijrahDate
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarSystem.java79 public abstract sun.util.calendar.Era getEra(java.lang.String eraName); in getEra() method in CalendarSystem
DImmutableGregorianDate.java35 public sun.util.calendar.Era getEra() { in getEra() method in ImmutableGregorianDate
DCalendarDate.java40 public sun.util.calendar.Era getEra() { in getEra() method in CalendarDate
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java189 assertEquals(test.getEra(), IsoEra.BCE); in test_date_withEra()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java344 .append(getEra()) in toString()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java716 public Era getEra() { in getEra() method in LocalDate
717 return ChronoLocalDate.super.getEra(); in getEra()

12