HomeSort by relevance Sort by last modified time
    Searched defs:era (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKIsoEra.java 59 import static java.time.temporal.ChronoField.ERA;
63 import java.time.chrono.Era;
87 public void test_valueOf(IsoEra era , String eraName, int eraValue) {
88 assertEquals(era.getValue(), eraValue);
89 assertEquals(IsoEra.of(eraValue), era); local
90 assertEquals(IsoEra.valueOf(eraName), era); local
98 List<Era> eraList = IsoChronology.INSTANCE.eras();
101 for (IsoEra era : eras) {
102 assertTrue(eraList.contains(era));
111 for (IsoEra era : IsoEra.values())
    [all...]
TCKMinguoEra.java 60 import static java.time.temporal.ChronoField.ERA;
64 import java.time.chrono.Era;
91 public void test_valueOf(MinguoEra era , String eraName, int eraValue) {
92 assertEquals(era.getValue(), eraValue);
93 assertEquals(MinguoEra.of(eraValue), era); local
94 assertEquals(MinguoEra.valueOf(eraName), era); local
103 List<Era> eraList = MinguoChronology.INSTANCE.eras();
106 for (MinguoEra era : eras) {
107 assertTrue(eraList.contains(era));
116 for (MinguoEra era : MinguoEra.values())
    [all...]
TCKThaiBuddhistEra.java 59 import static java.time.temporal.ChronoField.ERA;
63 import java.time.chrono.Era;
91 public void test_valueOf(ThaiBuddhistEra era , String eraName, int eraValue) {
92 assertEquals(era.getValue(), eraValue);
93 assertEquals(ThaiBuddhistEra.of(eraValue), era); local
94 assertEquals(ThaiBuddhistEra.valueOf(eraName), era); local
102 List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras();
105 for (ThaiBuddhistEra era : eras) {
106 assertTrue(eraList.contains(era));
115 for (ThaiBuddhistEra era : ThaiBuddhistEra.values())
    [all...]
TCKHijrahEra.java 59 import static java.time.temporal.ChronoField.ERA;
63 import java.time.chrono.Era;
86 public void test_valueOf(HijrahEra era , String eraName, int eraValue) {
87 assertEquals(era.getValue(), eraValue);
89 assertEquals(HijrahChronology.INSTANCE.eraOf(eraValue), era); local
90 assertEquals(HijrahEra.of(eraValue), era); local
91 assertEquals(HijrahEra.valueOf(eraName), era); local
99 List<Era> eraList = HijrahChronology.INSTANCE.eras();
102 for (HijrahEra era : eras) {
103 assertTrue(eraList.contains(era));
    [all...]
TCKJapaneseEra.java 59 import static java.time.temporal.ChronoField.ERA;
63 import java.time.chrono.Era;
88 public void test_valueOf(JapaneseEra era , String eraName, int eraValue) {
89 assertEquals(era.getValue(), eraValue);
90 assertEquals(JapaneseEra.of(eraValue), era); local
91 assertEquals(JapaneseEra.valueOf(eraName), era); local
99 List<Era> eraList = JapaneseChronology.INSTANCE.eras();
102 for (JapaneseEra era : eras) {
103 assertTrue(eraList.contains(era));
113 for (JapaneseEra era : JapaneseEra.values())
    [all...]
  /external/icu/icu4c/source/test/intltest/
calcasts.h 31 int32_t era; member in struct:CalendarCaseTest::TestCase
42 * @param cases array of items to test. Terminate with a "-1" for era.
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
TCKEraSerialization.java 71 import java.time.chrono.Era;
100 Era[][] data_of_calendars() {
101 return new Era[][] {
113 public void test_eraSerialization(Era era) throws IOException, ClassNotFoundException {
114 assertSerializableSame(era);
122 for (JapaneseEra era : JapaneseEra.values()) {
123 assertSerializableSame(era);
128 dos.writeByte(era.getValue());
131 assertSerializedBySer(era, bytes)
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/util/
TaiwanCalendar.java 21 * except for the year and era. Years are numbered since 1912 AD (Gregorian).
23 * The Taiwan Calendar has one era: <code>MINGUO</code>.
47 * Constant for the Taiwan Era for years before Minguo 1.
51 * @see android.icu.util.Calendar#ERA
56 * Constant for the Taiwan Era for Minguo. Minguo 1 is 1912 in
59 * @see android.icu.util.Calendar#ERA
188 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) {
191 int era = internalGet(ERA, MINGUO); local
192 if (era == MINGUO)
    [all...]
CopticCalendar.java 233 // The year defaults to the epoch start, the era to AD
234 int era = internalGet(ERA, CE); local
235 if (era == BCE) {
252 int era, year; local
261 era = BCE;
264 era = CE;
269 internalSet(ERA, era);
JapaneseCalendar.java 18 * except for the year and era. The ascension of each emperor to the throne
19 * begins a new era, and the years of that era are numbered starting with the
23 * of year and era values: that for the old era and for the new. For example, a
24 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
25 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
26 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
32 * for these eras, suitable for use in the <code>ERA</code> field, are provided
33 * in this class. Note that the <em>number</em> used for each era is more o
231 int era = internalGet(ERA, CURRENT_ERA); local
253 int era = internalGet(ERA, CURRENT_ERA); local
636 int era = get(Calendar.ERA); local
    [all...]
EthiopicCalendar.java 132 // Era mode. When eraType is AMETE_ALEM_ERA,
133 // Amete Mihret won't be used for the ERA field.
252 * Set Alem or Mihret era.
254 * @param onOff Set Amete Alem era if true, otherwise set Amete Mihret era.
261 * Return true if this calendar is set to the Amete Alem era.
263 * @return true if set to the Amete Alem era.
285 // The year defaults to the epoch start, the era to AMETE_MIHRET
286 int era = internalGet(ERA, AMETE_MIHRET) local
303 int era, year; local
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
TaiwanCalendar.java 20 * except for the year and era. Years are numbered since 1912 AD (Gregorian).
22 * The Taiwan Calendar has one era: <code>MINGUO</code>.
47 * Constant for the Taiwan Era for years before Minguo 1.
51 * @see com.ibm.icu.util.Calendar#ERA
57 * Constant for the Taiwan Era for Minguo. Minguo 1 is 1912 in
60 * @see com.ibm.icu.util.Calendar#ERA
201 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) {
204 int era = internalGet(ERA, MINGUO); local
205 if (era == MINGUO)
    [all...]
CopticCalendar.java 255 // The year defaults to the epoch start, the era to AD
256 int era = internalGet(ERA, CE); local
257 if (era == BCE) {
273 int era, year; local
282 era = BCE;
285 era = CE;
290 internalSet(ERA, era);
JapaneseCalendar.java 17 * except for the year and era. The ascension of each emperor to the throne
18 * begins a new era, and the years of that era are numbered starting with the
22 * of year and era values: that for the old era and for the new. For example, a
23 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
24 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
25 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
31 * for these eras, suitable for use in the <code>ERA</code> field, are provided
32 * in this class. Note that the <em>number</em> used for each era is more o
243 int era = internalGet(ERA, CURRENT_ERA); local
266 int era = internalGet(ERA, CURRENT_ERA); local
657 int era = get(Calendar.ERA); local
    [all...]
EthiopicCalendar.java 145 // Era mode. When eraType is AMETE_ALEM_ERA,
146 // Amete Mihret won't be used for the ERA field.
275 * Set Alem or Mihret era.
277 * @param onOff Set Amete Alem era if true, otherwise set Amete Mihret era.
285 * Return true if this calendar is set to the Amete Alem era.
287 * @return true if set to the Amete Alem era.
310 // The year defaults to the epoch start, the era to AMETE_MIHRET
311 int era = internalGet(ERA, AMETE_MIHRET) local
328 int era, year; local
    [all...]
  /external/icu/icu4c/source/i18n/
coptccal.cpp 66 // The year defaults to the epoch start, the era to CE
67 int32_t era = internalGet(UCAL_ERA, CE); local
68 if (era == BCE) {
80 int32_t eyear, month, day, era, year; local
84 era = BCE;
87 era = CE;
92 internalSet(UCAL_ERA, era);
ethpccal.cpp 92 // The year defaults to the epoch start, the era to AMETE_MIHRET
93 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); local
94 if (era == AMETE_MIHRET) {
106 int32_t eyear, month, day, era, year; local
110 era = AMETE_ALEM;
114 era = AMETE_MIHRET;
117 era = AMETE_ALEM;
123 internalSet(UCAL_ERA, era);
134 return 0; // Only one era in this mode, era is always
    [all...]
taiwncal.cpp 76 int32_t era = internalGet(UCAL_ERA, MINGUO); local
77 if(era == MINGUO) {
79 } else if(era == BEFORE_MINGUO) {
117 int32_t era = internalGet(UCAL_ERA);
120 if(era == GregorianCalendar::BC) {
122 era = TaiwanCalendar::MINGUO;
123 } else if(era == GregorianCalendar::AD) {
124 era = TaiwanCalendar::MINGUO;
131 internalSet(UCAL_ERA, era);
japancal.cpp 285 * The current era, for reference.
329 int32_t era = internalGetEra(); local
330 // TODO do we assume we can trust 'era'? What if it is denormalized?
334 // Find out if we are at the edge of an era
336 if(eyear == kEraInfo[era].year) {
337 // Yes, we're in the first year of this era.
338 return kEraInfo[era].month-1;
346 int32_t era = internalGetEra(); local
349 if(eyear == kEraInfo[era].year) {
350 if(month == (kEraInfo[era].month-1))
509 int32_t era = get(UCAL_ERA, status); local
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
JapaneseDate.java 102 * apart from the era-based year numbering. The proleptic-year is defined to be
112 * Calling {@code japaneseDate.get(ERA)} will return 2, corresponding to
136 private transient JapaneseEra era; field in class:JapaneseDate
196 * system from the era, year-of-era, month-of-year and day-of-month fields.
202 * ISO calendar system. They are not reset when the era changes.
211 * @param era the Japanese era, not null
212 * @param yearOfEra the Japanese year-of-era
218 * or if the date is not a Japanese era
    [all...]
JapaneseEra.java 65 import static java.time.temporal.ChronoField.ERA;
86 * An era in the Japanese Imperial calendar system.
99 implements Era, Serializable {
101 // The offset value to 0-based index from the era value.
105 static final sun.util.calendar.Era[] ERA_CONFIG;
108 * The singleton instance for the 'Meiji' era (1868-01-01 - 1912-07-29)
113 * The singleton instance for the 'Taisho' era (1912-07-30 - 1926-12-24)
118 * The singleton instance for the 'Showa' era (1926-12-25 - 1989-01-07)
123 * The singleton instance for the 'Heisei' era (1989-01-08 - current)
129 // There could be an extra era defined in its configuration
251 JapaneseEra era = KNOWN_ERAS[i]; local
270 JapaneseEra era = KNOWN_ERAS[i]; local
    [all...]
IsoChronology.java 66 import static java.time.temporal.ChronoField.ERA;
104 * <li>era - There are two eras, 'Current Era' (CE) and 'Before Current Era' (BCE).
105 * <li>year-of-era - The year-of-era is the same as the proleptic-year for the current CE era.
106 * For the BCE era before the ISO epoch the year increases from 1 upwards as time goes backwards.
107 * <li>proleptic-year - The proleptic year is the same as the year-of-era for the
108 * current era. For the previous era, years have zero, then negative values
514 Long era = fieldValues.remove(ERA); local
    [all...]
JapaneseChronology.java 61 import static java.time.temporal.ChronoField.ERA;
100 * apart from the era-based year numbering.
116 * <li>{@code ERA}
190 * era, year-of-era, month-of-year and day-of-month fields.
193 * ISO calendar system. They are not reset when the era changes.
202 * @param era the Japanese era, not null
203 * @param yearOfEra the year-of-era
208 * @throws ClassCastException if the {@code era} is not a {@code JapaneseEra
441 JapaneseEra era = null; local
    [all...]
  /libcore/ojluni/src/main/java/java/time/format/
DateTimeTextProvider.java 70 import static java.time.temporal.ChronoField.ERA;
173 if (field == ERA) {
174 fieldIndex = Calendar.ERA;
253 case ERA:
254 fieldIndex = Calendar.ERA;
277 case Calendar.ERA:
279 int era = entry.getValue(); local
281 if (era == 0) {
282 era = -999;
284 era -= 2
    [all...]
  /libcore/ojluni/src/main/java/sun/util/calendar/
JulianCalendar.java 41 private static final Era[] eras = {
42 new Era("BeforeCommonEra", "B.C.E.", Long.MIN_VALUE, false),
43 new Era("CommonEra", "C.E.", -62135709175808L, true)
58 public Date setEra(Era era) {
59 if (era == null) {
62 if (era != eras[0] || era != eras[1]) {
63 throw new IllegalArgumentException("unknown era: " + era);
98 Era era = getEra(); local
    [all...]

Completed in 296 milliseconds

1 2 3 4