Home
last modified time | relevance | path

Searched refs:era (Results 1 - 25 of 116) sorted by relevance

12345

/third_party/icu/icu4c/source/i18n/
H A 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);
H A Dethpccal.cpp92 // The year defaults to the epoch start, the era to AMETE_MIHRET in handleGetExtendedYear()
93 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()
134 return 0; // Only one era in this mode, era i in handleGetLimit()
[all...]
H A Dcoptccal.cpp66 // The year defaults to the epoch start, the era to CE in handleGetExtendedYear()
67 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()
H A Dbuddhcal.cpp29 //static const int32_t kMaxEra = 0; // only 1 era
110 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);
H A Djapancal.cpp67 // Although start date of next Japanese era is planned ahead, a name of in enableTentativeEra()
68 // new era might not be available. This implementation allows tester to in enableTentativeEra()
69 // check a new era without era names by settings below (in priority order). in enableTentativeEra()
70 // By default, such tentative era is disabled. in enableTentativeEra()
95 // Initialize global Japanese era data
151 int32_t era = internalGetEra(); in getDefaultMonthInYear() local
152 // TODO do we assume we can trust 'era'? What if it is denormalized? in getDefaultMonthInYear()
156 // Find out if we are at the edge of an era in getDefaultMonthInYear()
159 gJapaneseEraRules->getStartDate(era, eraStar in getDefaultMonthInYear()
172 int32_t era = internalGetEra(); getDefaultDayInMonth() local
281 int32_t era = get(UCAL_ERA, status); getActualMaximum() local
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A 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);
H A Dbuddhcal.cpp29 //static const int32_t kMaxEra = 0; // only 1 era
103 int32_t era = internalGet(UCAL_ERA);
106 if(era == GregorianCalendar::BC) {
108 era = BuddhistCalendar::BE;
109 } else if(era == GregorianCalendar::AD) {
110 era = BuddhistCalendar::BE;
117 internalSet(UCAL_ERA, era);
H A Dcoptccal.cpp66 // The year defaults to the epoch start, the era to CE in handleGetExtendedYear()
67 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()
H A Djapancal.cpp67 // Although start date of next Japanese era is planned ahead, a name of in enableTentativeEra()
68 // new era might not be available. This implementation allows tester to in enableTentativeEra()
69 // check a new era without era names by settings below (in priority order). in enableTentativeEra()
70 // By default, such tentative era is disabled. in enableTentativeEra()
95 // Initialize global Japanese era data
151 int32_t era = internalGetEra(); in getDefaultMonthInYear() local
152 // TODO do we assume we can trust 'era'? What if it is denormalized? in getDefaultMonthInYear()
156 // Find out if we are at the edge of an era in getDefaultMonthInYear()
159 gJapaneseEraRules->getStartDate(era, eraStar in getDefaultMonthInYear()
172 int32_t era = internalGetEra(); getDefaultDayInMonth() local
281 int32_t era = get(UCAL_ERA, status); getActualMaximum() local
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A 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);
H A Dethpccal.cpp92 // The year defaults to the epoch start, the era to AMETE_MIHRET in handleGetExtendedYear()
93 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()
134 return 0; // Only one era in this mode, era i in handleGetLimit()
[all...]
H A Dbuddhcal.cpp29 //static const int32_t kMaxEra = 0; // only 1 era
110 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);
H A Dcoptccal.cpp66 // The year defaults to the epoch start, the era to CE in handleGetExtendedYear()
67 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()
H A Djapancal.cpp67 // Although start date of next Japanese era is planned ahead, a name of in enableTentativeEra()
68 // new era might not be available. This implementation allows tester to in enableTentativeEra()
69 // check a new era without era names by settings below (in priority order). in enableTentativeEra()
70 // By default, such tentative era is disabled. in enableTentativeEra()
95 // Initialize global Japanese era data
151 int32_t era = internalGetEra(); in getDefaultMonthInYear() local
152 // TODO do we assume we can trust 'era'? What if it is denormalized? in getDefaultMonthInYear()
156 // Find out if we are at the edge of an era in getDefaultMonthInYear()
159 gJapaneseEraRules->getStartDate(era, eraStar in getDefaultMonthInYear()
172 int32_t era = internalGetEra(); getDefaultDayInMonth() local
281 int32_t era = get(UCAL_ERA, status); getActualMaximum() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DJapaneseCalendar.java20 * except for the year and era. The ascension of each emperor to the throne
21 * begins a new era, and the years of that era are numbered starting with the
25 * of year and era values: that for the old era and for the new. For example, a
26 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
27 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
28 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
35 * in this class. Note that the <em>number</em> used for each era is more or
36 * less arbitrary. Currently, the era startin
175 JapaneseCalendar(int era, int year, int month, int date) JapaneseCalendar() argument
[all...]
H A DCopticCalendar.java257 // The year defaults to the epoch start, the era to AD in handleGetExtendedYear()
258 int era = internalGet(ERA, CE); in handleGetExtendedYear()
259 if (era == BCE) { in handleGetExtendedYear()
276 int era, year; in handleComputeFields()
285 era = BCE; in handleComputeFields()
288 era = CE; in handleComputeFields()
293 internalSet(ERA, era); in handleComputeFields()
H A DEthiopicCalendar.java276 * Set Alem or Mihret era.
278 * @param onOff Set Amete Alem era if true, otherwise set Amete Mihret era.
286 * Return true if this calendar is set to the Amete Alem era.
288 * @return true if set to the Amete Alem era.
312 // The year defaults to the epoch start, the era to AMETE_MIHRET in handleGetExtendedYear()
313 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear()
314 if (era == AMETE_MIHRET) { in handleGetExtendedYear()
331 int era, year; in handleComputeFields()
340 era in handleComputeFields()
[all...]
H A DGregorianCalendar.java214 * the period before the common era (before Christ), also known as BCE.
224 * the common era (Anno Domini), also known as CE.
664 * time, or era changes in response to setting the year. We don't in getActualMaximum()
665 * check for month, date, and time here because the year and era are in getActualMaximum()
674 int era = cal.get(ERA); in getActualMaximum()
685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
798 int era = AD; in handleComputeFields()
800 era = BC; in handleComputeFields()
803 internalSet(ERA, era); in handleComputeFields()
819 // The year defaults to the epoch start, the era t in handleGetExtendedYear()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DJapaneseCalendar.java21 * except for the year and era. The ascension of each emperor to the throne
22 * begins a new era, and the years of that era are numbered starting with the
26 * of year and era values: that for the old era and for the new. For example, a
27 * new era began on January 7, 1989 AD. Strictly speaking, the first six days
28 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest
29 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class
36 * in this class. Note that the <em>number</em> used for each era is more or
37 * less arbitrary. Currently, the era startin
167 JapaneseCalendar(int era, int year, int month, int date) JapaneseCalendar() argument
[all...]
H A DCopticCalendar.java233 // The year defaults to the epoch start, the era to AD in handleGetExtendedYear()
234 int era = internalGet(ERA, CE); in handleGetExtendedYear()
235 if (era == BCE) { in handleGetExtendedYear()
252 int era, year; in handleComputeFields()
261 era = BCE; in handleComputeFields()
264 era = CE; in handleComputeFields()
269 internalSet(ERA, era); in handleComputeFields()
H A DEthiopicCalendar.java252 * 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 in handleGetExtendedYear()
286 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear()
287 if (era == AMETE_MIHRET) { in handleGetExtendedYear()
303 int era, year; in handleComputeFields()
312 era in handleComputeFields()
[all...]
H A DGregorianCalendar.java214 * the period before the common era (before Christ), also known as BCE.
223 * the common era (Anno Domini), also known as CE.
642 * time, or era changes in response to setting the year. We don't in getActualMaximum()
643 * check for month, date, and time here because the year and era are in getActualMaximum()
652 int era = cal.get(ERA); in getActualMaximum()
663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
773 int era = AD; in handleComputeFields()
775 era = BC; in handleComputeFields()
778 internalSet(ERA, era); in handleComputeFields()
793 // The year defaults to the epoch start, the era t in handleGetExtendedYear()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
H A DTestCase.java85 * @param era The ERA field of tested calendar on the given julian day
95 int era, int year, int month, int day, in TestCase()
101 set(Calendar.ERA, era); in TestCase()
119 * @param era The ERA field of tested calendar on the given gregorian date
129 int era, int year, int month, int day, in TestCase()
138 set(Calendar.ERA, era); in TestCase()
94 TestCase(double julian, int era, int year, int month, int day, int dayOfWeek, int hour, int min, int sec) TestCase() argument
128 TestCase(int gregYear, int gregMonth, int gregDay, int era, int year, int month, int day, int dayOfWeek, int hour, int min, int sec) TestCase() argument
H A DChineseTestCase.java23 * @param era the ERA field of tested calendar on the given Julian
36 int era, int year, int month, in ChineseTestCase()
41 set(Calendar.ERA, era); in ChineseTestCase()
35 ChineseTestCase(double julian, int era, int year, int month, boolean isLeapMonth, int dayOfMonth, int dayOfWeek) ChineseTestCase() argument
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
H A DTestCase.java82 * @param era The ERA field of tested calendar on the given julian day
92 int era, int year, int month, int day, in TestCase()
98 set(Calendar.ERA, era); in TestCase()
116 * @param era The ERA field of tested calendar on the given gregorian date
126 int era, int year, int month, int day, in TestCase()
135 set(Calendar.ERA, era); in TestCase()
91 TestCase(double julian, int era, int year, int month, int day, int dayOfWeek, int hour, int min, int sec) TestCase() argument
125 TestCase(int gregYear, int gregMonth, int gregDay, int era, int year, int month, int day, int dayOfWeek, int hour, int min, int sec) TestCase() argument

Completed in 13 milliseconds

12345