Home
last modified time | relevance | path

Searched refs:era (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DJapaneseCalendar.java157 public JapaneseCalendar(int era, int year, int month, int date) { in JapaneseCalendar() argument
159 set(ERA, era); in JapaneseCalendar()
243 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() local
247 if(extendedYear == ERAS[era*3]) { in getDefaultMonthInYear()
248 return ERAS[(era*3)+1] // month.. in getDefaultMonthInYear()
266 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() local
268 if(extendedYear == ERAS[era*3]) { // if it is year 1.. in getDefaultDayInMonth()
269 if(month == ((ERAS[(era*3)+1])-1)) { // if it is the emperor's first month.. in getDefaultDayInMonth()
270 return ERAS[(era*3)+2]; // return the D_O_M of acession in getDefaultDayInMonth()
657 int era = get(Calendar.ERA); in getActualMaximum() local
[all …]
DCopticCalendar.java256 int era = internalGet(ERA, CE); in handleGetExtendedYear() local
257 if (era == BCE) { in handleGetExtendedYear()
273 int era, year; in handleComputeFields() local
282 era = BCE; in handleComputeFields()
285 era = CE; in handleComputeFields()
290 internalSet(ERA, era); in handleComputeFields()
DEthiopicCalendar.java311 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() local
312 if (era == AMETE_MIHRET) { in handleGetExtendedYear()
328 int era, year; in handleComputeFields() local
337 era = AMETE_ALEM; in handleComputeFields()
341 era = AMETE_MIHRET; in handleComputeFields()
344 era = AMETE_ALEM; in handleComputeFields()
350 internalSet(ERA, era); in handleComputeFields()
DGregorianCalendar.java674 int era = cal.get(ERA); in getActualMaximum() local
685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
798 int era = AD; in handleComputeFields() local
800 era = BC; in handleComputeFields()
803 internalSet(ERA, era); in handleComputeFields()
820 int era = internalGet(ERA, AD); in handleGetExtendedYear() local
821 if (era == BC) { in handleGetExtendedYear()
DSimpleTimeZone.java644 public int getOffset(int era, int year, int month, int day, in getOffset() argument
658 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset()
666 public int getOffset(int era, int year, int month, int day, in getOffset() argument
680 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
684 private int getOffset(int era, int year, int month, int day, in getOffset() argument
692 if ((era != GregorianCalendar.AD && era != GregorianCalendar.BC) in getOffset()
745 if (!useDaylight || year < startYear || era != GregorianCalendar.AD) return result; in getOffset()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DJapaneseCalendar.java149 public JapaneseCalendar(int era, int year, int month, int date) { in JapaneseCalendar() argument
151 set(ERA, era); in JapaneseCalendar()
231 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() local
235 if(extendedYear == ERAS[era*3]) { in getDefaultMonthInYear()
236 return ERAS[(era*3)+1] // month.. in getDefaultMonthInYear()
253 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() local
255 if(extendedYear == ERAS[era*3]) { // if it is year 1.. in getDefaultDayInMonth()
256 if(month == ((ERAS[(era*3)+1])-1)) { // if it is the emperor's first month.. in getDefaultDayInMonth()
257 return ERAS[(era*3)+2]; // return the D_O_M of acession in getDefaultDayInMonth()
636 int era = get(Calendar.ERA); in getActualMaximum() local
[all …]
DCopticCalendar.java234 int era = internalGet(ERA, CE); in handleGetExtendedYear() local
235 if (era == BCE) { in handleGetExtendedYear()
252 int era, year; in handleComputeFields() local
261 era = BCE; in handleComputeFields()
264 era = CE; in handleComputeFields()
269 internalSet(ERA, era); in handleComputeFields()
DEthiopicCalendar.java286 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() local
287 if (era == AMETE_MIHRET) { in handleGetExtendedYear()
303 int era, year; in handleComputeFields() local
312 era = AMETE_ALEM; in handleComputeFields()
316 era = AMETE_MIHRET; in handleComputeFields()
319 era = AMETE_ALEM; in handleComputeFields()
325 internalSet(ERA, era); in handleComputeFields()
DGregorianCalendar.java652 int era = cal.get(ERA); in getActualMaximum() local
663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
773 int era = AD; in handleComputeFields() local
775 era = BC; in handleComputeFields()
778 internalSet(ERA, era); in handleComputeFields()
794 int era = internalGet(ERA, AD); in handleGetExtendedYear() local
795 if (era == BC) { in handleGetExtendedYear()
DTaiwanCalendar.java191 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() local
192 if (era == MINGUO) { in handleGetExtendedYear()
DSimpleTimeZone.java623 public int getOffset(int era, int year, int month, int day, in getOffset() argument
637 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset()
645 public int getOffset(int era, int year, int month, int day, in getOffset() argument
659 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
663 private int getOffset(int era, int year, int month, int day, in getOffset() argument
671 if ((era != GregorianCalendar.AD && era != GregorianCalendar.BC) in getOffset()
724 if (!useDaylight || year < startYear || era != GregorianCalendar.AD) return result; in getOffset()
/external/icu/icu4c/source/i18n/
Djapancal.cpp329 int32_t era = internalGetEra(); in getDefaultMonthInYear() local
336 if(eyear == kEraInfo[era].year) { in getDefaultMonthInYear()
338 return kEraInfo[era].month-1; in getDefaultMonthInYear()
346 int32_t era = internalGetEra(); in getDefaultDayInMonth() local
349 if(eyear == kEraInfo[era].year) { in getDefaultDayInMonth()
350 if(month == (kEraInfo[era].month-1)) { in getDefaultDayInMonth()
351 return kEraInfo[era].day; in getDefaultDayInMonth()
509 int32_t era = get(UCAL_ERA, status); in getActualMaximum() local
513 if (era == kCurrentEra) { in getActualMaximum()
517 int32_t nextEraYear = kEraInfo[era + 1].year; in getActualMaximum()
[all …]
Dtaiwncal.cpp76 int32_t era = internalGet(UCAL_ERA, MINGUO); in handleGetExtendedYear() local
77 if(era == MINGUO) { in handleGetExtendedYear()
79 } else if(era == BEFORE_MINGUO) { in handleGetExtendedYear()
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);
Dethpccal.cpp93 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); in handleGetExtendedYear() local
94 if (era == AMETE_MIHRET) { in handleGetExtendedYear()
106 int32_t eyear, month, day, era, year; in handleComputeFields() local
110 era = AMETE_ALEM; in handleComputeFields()
114 era = AMETE_MIHRET; in handleComputeFields()
117 era = AMETE_ALEM; in handleComputeFields()
123 internalSet(UCAL_ERA, era); in handleComputeFields()
Dcoptccal.cpp67 int32_t era = internalGet(UCAL_ERA, CE); in handleGetExtendedYear() local
68 if (era == BCE) { in handleGetExtendedYear()
80 int32_t eyear, month, day, era, year; in handleComputeFields() local
84 era = BCE; in handleComputeFields()
87 era = CE; in handleComputeFields()
92 internalSet(UCAL_ERA, era); in handleComputeFields()
Dbuddhcal.cpp110 int32_t era = internalGet(UCAL_ERA);
113 if(era == GregorianCalendar::BC) {
115 era = BuddhistCalendar::BE;
116 } else if(era == GregorianCalendar::AD) {
117 era = BuddhistCalendar::BE;
124 internalSet(UCAL_ERA, era);
Dvzone.cpp119 vzone_getOffset(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, in vzone_getOffset() argument
121 … return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); in vzone_getOffset()
125 vzone_getOffset2(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, in vzone_getOffset2() argument
128 …return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLen… in vzone_getOffset2()
Dgregocal.cpp441 int32_t era = AD; in handleComputeFields() local
443 era = BC; in handleComputeFields()
446 internalSet(UCAL_ERA, era); in handleComputeFields()
1150 int32_t era = cal->get(UCAL_ERA, status); in getActualMaximum() local
1161 if (cal->get(UCAL_YEAR, status) == y && cal->get(UCAL_ERA, status) == era) { in getActualMaximum()
1202 int32_t era = internalGet(UCAL_ERA, AD); in handleGetExtendedYear() local
1203 if (era == BC) { in handleGetExtendedYear()
1230 int32_t era = internalGet(UCAL_ERA, AD); in handleGetExtendedYearFromWeekFields() local
1231 if(era == BC) { in handleGetExtendedYearFromWeekFields()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DTestCase.java93 int era, int year, int month, int day, in TestCase() argument
99 set(Calendar.ERA, era); in TestCase()
127 int era, int year, int month, int day, in TestCase() argument
136 set(Calendar.ERA, era); in TestCase()
DChineseTestCase.java34 int era, int year, int month, in ChineseTestCase() argument
39 set(Calendar.ERA, era); in ChineseTestCase()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DTestCase.java92 int era, int year, int month, int day, in TestCase() argument
98 set(Calendar.ERA, era); in TestCase()
126 int era, int year, int month, int day, in TestCase() argument
135 set(Calendar.ERA, era); in TestCase()
DChineseTestCase.java33 int era, int year, int month, in ChineseTestCase() argument
38 set(Calendar.ERA, era); in ChineseTestCase()
/external/icu/icu4c/source/test/intltest/
Dcalcasts.cpp53 for(i=0;cases[i].era>=0;i++) { in doTestCases()
63 checkField(cal, UCAL_ERA, cases[i].era, status); in doTestCases()
75 cal->set(UCAL_ERA, cases[i].era); in doTestCases()
488 for (i = 0; tcase[i].era >= 0; i++) { in Ethiopic()
489 if (tcase[i].era == 1) { in Ethiopic()
490 tcase[i].era = 0; // Change to Amete Alem era in Ethiopic()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneAdapter.java88 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
90 return zone.getOffset(era, year, month, day, dayOfWeek, millis); in getOffset()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneAdapter.java89 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
91 return zone.getOffset(era, year, month, day, dayOfWeek, millis); in getOffset()

12345678910>>...12