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

1 2 3

  /external/icu/icu4c/source/test/intltest/
calcasts.h 29 int32_t era; member in struct:CalendarCaseTest::TestCase
40 * @param cases array of items to test. Terminate with a "-1" for era.
incaltst.cpp 144 * that behaves like a Gregorian but has different year/era mappings.
147 * { era, year, gregorianYear, month, dayOfMonth, ... ... , -1 }
168 int32_t era = data[i++]; local
179 cal.set(UCAL_ERA, era);
187 logln(UnicodeString("OK: ") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
190 errln(UnicodeString("Fail: (fields to millis)") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
203 if (y == year && e == era) {
211 ", expected " + era + ":" + year + "/" + (month+1) + "/" +
256 * Verify that BuddhistCalendar shifts years to Buddhist Era but otherwise
264 0, // B. era [928479600000
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/util/
TaiwanCalendar.java 19 * except for the year and era. Years are numbered since 1912 AD (Gregorian).
21 * The Taiwan Calendar has one era: <code>MINGUO</code>.
45 * Constant for the Taiwan Era for years before Minguo 1.
49 * @see android.icu.util.Calendar#ERA
54 * Constant for the Taiwan Era for Minguo. Minguo 1 is 1912 in
57 * @see android.icu.util.Calendar#ERA
186 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) {
189 int era = internalGet(ERA, MINGUO); local
190 if (era == MINGUO)
    [all...]
CopticCalendar.java 231 // The year defaults to the epoch start, the era to AD
232 int era = internalGet(ERA, CE); local
233 if (era == BCE) {
250 int era, year; local
259 era = BCE;
262 era = CE;
267 internalSet(ERA, era);
JapaneseCalendar.java 16 * except for the year and era. The ascension of each emperor to the throne
17 * begins a new era, and the years of that era are numbered starting with the
21 * of year and era values: that for the old era and for the new. For example, a
22 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
23 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
24 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
30 * for these eras, suitable for use in the <code>ERA</code> field, are provided
31 * in this class. Note that the <em>number</em> used for each era is more o
229 int era = internalGet(ERA, CURRENT_ERA); local
251 int era = internalGet(ERA, CURRENT_ERA); local
634 int era = get(Calendar.ERA); local
    [all...]
EthiopicCalendar.java 131 // Era mode. When eraType is AMETE_ALEM_ERA,
132 // Amete Mihret won't be used for the ERA field.
251 * Set Alem or Mihret era.
253 * @param onOff Set Amete Alem era if true, otherwise set Amete Mihret era.
260 * Return true if this calendar is set to the Amete Alem era.
262 * @return true if set to the Amete Alem era.
284 // The year defaults to the epoch start, the era to AMETE_MIHRET
285 int era = internalGet(ERA, AMETE_MIHRET) local
302 int era, year; local
    [all...]
GregorianCalendar.java 114 * System.out.println("ERA: " + calendar.get(Calendar.ERA));
139 * System.out.println("ERA: " + calendar.get(Calendar.ERA));
211 * Value of the <code>ERA</code> field indicating
212 * the period before the common era (before Christ), also known as BCE.
215 * @see Calendar#ERA
220 * Value of the <code>ERA</code> field indicating
221 * the common era (Anno Domini), also known as CE.
224 * @see Calendar#ERA
650 int era = cal.get(ERA); local
771 int era = AD; local
792 int era = internalGet(ERA, AD); local
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
TaiwanCalendar.java 18 * except for the year and era. Years are numbered since 1912 AD (Gregorian).
20 * The Taiwan Calendar has one era: <code>MINGUO</code>.
45 * Constant for the Taiwan Era for years before Minguo 1.
49 * @see com.ibm.icu.util.Calendar#ERA
55 * Constant for the Taiwan Era for Minguo. Minguo 1 is 1912 in
58 * @see com.ibm.icu.util.Calendar#ERA
199 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) {
202 int era = internalGet(ERA, MINGUO); local
203 if (era == MINGUO)
    [all...]
CopticCalendar.java 253 // The year defaults to the epoch start, the era to AD
254 int era = internalGet(ERA, CE); local
255 if (era == BCE) {
271 int era, year; local
280 era = BCE;
283 era = CE;
288 internalSet(ERA, era);
JapaneseCalendar.java 15 * except for the year and era. The ascension of each emperor to the throne
16 * begins a new era, and the years of that era are numbered starting with the
20 * of year and era values: that for the old era and for the new. For example, a
21 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
22 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
23 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
29 * for these eras, suitable for use in the <code>ERA</code> field, are provided
30 * in this class. Note that the <em>number</em> used for each era is more o
241 int era = internalGet(ERA, CURRENT_ERA); local
264 int era = internalGet(ERA, CURRENT_ERA); local
655 int era = get(Calendar.ERA); local
    [all...]
EthiopicCalendar.java 143 // Era mode. When eraType is AMETE_ALEM_ERA,
144 // Amete Mihret won't be used for the ERA field.
273 * Set Alem or Mihret era.
275 * @param onOff Set Amete Alem era if true, otherwise set Amete Mihret era.
283 * Return true if this calendar is set to the Amete Alem era.
285 * @return true if set to the Amete Alem era.
308 // The year defaults to the epoch start, the era to AMETE_MIHRET
309 int era = internalGet(ERA, AMETE_MIHRET) local
326 int era, year; local
    [all...]
GregorianCalendar.java 113 * System.out.println("ERA: " + calendar.get(Calendar.ERA));
138 * System.out.println("ERA: " + calendar.get(Calendar.ERA));
211 * Value of the <code>ERA</code> field indicating
212 * the period before the common era (before Christ), also known as BCE.
215 * @see Calendar#ERA
221 * Value of the <code>ERA</code> field indicating
222 * the common era (Anno Domini), also known as CE.
225 * @see Calendar#ERA
672 int era = cal.get(ERA); local
796 int era = AD; local
818 int era = internalGet(ERA, AD); local
    [all...]
  /external/icu/icu4c/source/i18n/
coptccal.cpp 64 // The year defaults to the epoch start, the era to CE
65 int32_t era = internalGet(UCAL_ERA, CE); local
66 if (era == BCE) {
78 int32_t eyear, month, day, era, year; local
82 era = BCE;
85 era = CE;
90 internalSet(UCAL_ERA, era);
ethpccal.cpp 90 // The year defaults to the epoch start, the era to AMETE_MIHRET
91 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); local
92 if (era == AMETE_MIHRET) {
104 int32_t eyear, month, day, era, year; local
108 era = AMETE_ALEM;
112 era = AMETE_MIHRET;
115 era = AMETE_ALEM;
121 internalSet(UCAL_ERA, era);
132 return 0; // Only one era in this mode, era is always
    [all...]
taiwncal.cpp 74 int32_t era = internalGet(UCAL_ERA, MINGUO); local
75 if(era == MINGUO) {
77 } else if(era == BEFORE_MINGUO) {
115 int32_t era = internalGet(UCAL_ERA);
118 if(era == GregorianCalendar::BC) {
120 era = TaiwanCalendar::MINGUO;
121 } else if(era == GregorianCalendar::AD) {
122 era = TaiwanCalendar::MINGUO;
129 internalSet(UCAL_ERA, era);
japancal.cpp 282 * The current era, for reference.
326 int32_t era = internalGetEra(); local
327 // TODO do we assume we can trust 'era'? What if it is denormalized?
331 // Find out if we are at the edge of an era
333 if(eyear == kEraInfo[era].year) {
334 // Yes, we're in the first year of this era.
335 return kEraInfo[era].month-1;
343 int32_t era = internalGetEra(); local
346 if(eyear == kEraInfo[era].year) {
347 if(month == (kEraInfo[era].month-1))
506 int32_t era = get(UCAL_ERA, status); local
    [all...]
gregocal.cpp 79 { 0, 0, 1, 1}, // ERA
109 * ERA 0 0 1 1
439 int32_t era = AD; local
441 era = BC;
444 internalSet(UCAL_ERA, era);
1147 int32_t era = cal->get(UCAL_ERA, status); local
1199 int32_t era = internalGet(UCAL_ERA, AD); local
1227 int32_t era = internalGet(UCAL_ERA, AD); local
    [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...]
LocalGregorianCalendar.java 49 private Era[] eras;
63 public Date setEra(Era era) {
64 if (getEra() != era) {
65 super.setEra(era);
93 void setLocalEra(Era era) {
94 super.setEra(era);
105 Era era = getEra() local
179 Era era = new Era(eraName, abbr, since, localTime); local
218 Era era = eras[i]; local
248 Era era = ldate.getEra(); local
285 Era era = null; local
352 Era era = ldate.getEra(); local
    [all...]
CalendarDate.java 67 private Era era; field in class:CalendarDate
97 public Era getEra() {
98 return era;
102 * Sets the era of the date to the specified era. The default
103 * implementation of this method accepts any Era value, including
107 * <code>CalendarDate</code> requires eras and the specified era
110 * <code>era</code> is unknown to the calendar
113 public CalendarDate setEra(Era era)
418 int era = 0; local
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
HolidayTest.java 214 int era = fCalendar.get(Calendar.ERA); local
219 fCalendar.set(Calendar.ERA, era);
  /external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/
CalendarPanel.java 104 int era = fCalendar[0].get(Calendar.ERA); local
109 fCalendar[0].set(Calendar.ERA, era);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
HolidayTest.java 210 int era = fCalendar.get(Calendar.ERA); local
215 fCalendar.set(Calendar.ERA, era);
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
SerializableTest.java 525 int era = cal.get(Calendar.ERA); local
531 a_offset = tza_a.getOffset(era, year, month, day, dow, mid);
532 b_offset = tza_b.getOffset(era, year, month, day, dow, mid);
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
SerializableTest.java 521 int era = cal.get(Calendar.ERA); local
527 a_offset = tza_a.getOffset(era, year, month, day, dow, mid);
528 b_offset = tza_b.getOffset(era, year, month, day, dow, mid);
    [all...]

Completed in 768 milliseconds

1 2 3