Searched defs:eras (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/chrono/
H A DChronologyTest.java130 public List<Era> eras() { method in class:ChronologyTest.DummyChronology
/libcore/ojluni/src/main/java/java/time/chrono/
H A DMinguoChronology.java89 * <li>era - There are two eras, the current 'Republic' (ERA_ROC) and the previous era (ERA_BEFORE_ROC).
308 public List<Era> eras() { method in class:MinguoChronology
H A DChronology.java553 * If the chronology makes active use of eras, such as {@code JapaneseChronology}
570 * Most calendar systems have a single epoch dividing the time-line into two eras.
571 * However, some have multiple eras, such as one for the reign of each leader.
575 * Later eras must have sequentially higher values.
576 * Earlier eras must have sequentially lower values.
588 * Gets the list of eras for the chronology.
591 * If the calendar system does not support the concept of eras, an empty
594 * @return the list of eras for the chronology, may be immutable, not null
596 List<Era> eras(); method in interface:Chronology
H A DIsoChronology.java104 * <li>era - There are two eras, 'Current Era' (CE) and 'Before Current Era' (BCE).
400 public List<Era> eras() { method in class:IsoChronology
H A DJapaneseChronology.java103 * Only Meiji and later eras are supported;
376 * {@link JapaneseEra#MEIJI}), only Meiji and later eras are supported.
388 public List<Era> eras() { method in class:JapaneseChronology
394 JapaneseEra[] eras = JapaneseEra.values();
395 return eras[eras.length - 1];
H A DThaiBuddhistChronology.java90 * <li>era - There are two eras, the current 'Buddhist' (ERA_BE) and the previous era (ERA_BEFORE_BE).
125 * Narrow names for eras.
129 * Short names for eras.
133 * Full names for eras.
344 public List<Era> eras() { method in class:ThaiBuddhistChronology
H A DHijrahChronology.java574 public List<Era> eras() { method in class:HijrahChronology
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DAbstractCalendar.java60 private Era[] eras; field in class:AbstractCalendar
66 if (eras != null) {
67 for (int i = 0; i < eras.length; i++) {
68 if (eras[i].equals(eraName)) {
69 return eras[i];
78 if (eras != null) {
79 e = new Era[eras.length];
80 System.arraycopy(eras, 0, e, 0, eras.length);
86 if (eras
99 setEras(Era[] eras) argument
[all...]
H A DJulianCalendar.java41 private static final Era[] eras = { field in class:JulianCalendar
62 if (era != eras[0] || era != eras[1]) {
74 if (getEra() == eras[BCE]) {
87 setKnownEra(eras[BCE]);
90 setKnownEra(eras[CE]);
114 setEras(eras);
H A DLocalGregorianCalendar.java43 private Era[] eras; field in class:LocalGregorianCalendar
127 // Parse calendar.*.eras
128 String props = calendarProps.getProperty("calendar." + name + ".eras");
132 List<Era> eras = new ArrayList<>();
167 eras.add(era);
171 if (eras.isEmpty()) {
172 throw new RuntimeException("No eras for " + name);
175 Era[] eraArray = new Era[eras.size()];
176 eras.toArray(eraArray);
181 private LocalGregorianCalendar(String name, Era[] eras) { argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DCopticChronology.java80 * <li>era - There are two eras, the current 'Era of the Martyrs' (AM) and the previous era (ERA_ERA_BEFORE_AM).
225 public List<Era> eras() { method in class:CopticChronology
/libcore/luni/src/main/java/libcore/icu/
H A DLocaleData.java50 public String[] eras; // "BC", "AD". field in class:LocaleData
/libcore/ojluni/src/main/java/java/text/
H A DDateFormatSymbols.java151 String eras[] = null; field in class:DateFormatSymbols
455 return Arrays.copyOf(eras, eras.length);
463 eras = Arrays.copyOf(newEras, newEras.length);
742 hashCode = 11 * hashCode + Arrays.hashCode(eras);
766 if (!(Arrays.equals(eras, that.eras)
834 eras = localeData.eras;
951 dst.eras
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DJapaneseImperialCalendar.java42 * supported from the Meiji era. The following are the eras supported
126 // Imperial eras. The sun.util.calendar.LocalGregorianCalendar
130 private static final Era[] eras; field in class:JapaneseImperialCalendar
158 * *: depends on eras
224 eras = new Era[length];
227 // eras[BEFORE_MEIJI] and sinceFixedDate[BEFORE_MEIJI] are the
231 eras[index++] = BEFORE_MEIJI_ERA;
235 eras[index++] = e;
238 LEAST_MAX_VALUES[ERA] = MAX_VALUES[ERA] = eras.length - 1;
246 for (int i = 1; i < eras
[all...]

Completed in 66 milliseconds