Lines Matching defs:era

42  * calendar system in which the imperial era-based year numbering is
43 * supported from the Meiji era. The following are the eras supported
63 * with time differences for applying the era transitions. This
80 * The ERA constant designating the era before Meiji.
85 * The ERA constant designating the Meiji era.
90 * The ERA constant designating the Taisho era.
95 * The ERA constant designating the Showa era.
100 * The ERA constant designating the Heisei era.
120 // Gregorian calendar instance. This is required because era
129 // inconvenient for a Calendar. So, era[0] is a reference to
133 // Fixed date of the first date of each era.
243 // era transition in a Gregorian year.
388 int era = internalGet(ERA) + amount;
389 if (era < 0) {
390 era = 0;
391 } else if (era > eras.length - 1) {
392 era = eras.length - 1;
394 set(ERA, era);
535 // date, a time zone and the era transitions.
830 // Transition handling. We can't change year and era
853 // Handle transition. We can't change year and era values
880 // changing era and year values violates the roll
963 Era era = eras[index];
964 name = (style == SHORT) ? era.getAbbreviation() : era.getName();
1018 Era era = eras[i];
1019 String name = (style == SHORT) ? era.getAbbreviation() : era.getName();
1650 int era = getEraIndex(jdate);
1654 internalSet(ERA, era);
1703 // If it's a year of an era transition, we need to handle
1752 if (era > HEISEI) {
1753 CalendarDate pd = eras[era - 1].getSinceDate();
1880 int era;
1883 era = internalGet(ERA);
1887 era = eras.length - 1;
1891 era = SHOWA;
1925 fixedDate += getFixedDate(era, year, fieldMask);
2000 private long getFixedDate(int era, int year, int fieldMask) {
2018 if (year == 1 && era != 0) {
2019 CalendarDate d = eras[era].getSinceDate();
2036 date.setEra(era > 0 ? eras[era] : null);
2144 Era era = date.getEra();
2149 // There might be multiple era transitions in a year.
2166 * calculated. The date must be in the era transition year.
2235 * Returns the index to the new era if the given date is in a
2237 * (1989) January 20, then the era index for Heisei is
2239 * January 3, then the era index for Heisei is returned. If the
2273 Era era = date.getEra();
2275 if (eras[i] == era) {
2366 * default ERA is the current era, but a zero (unset) ERA means before Meiji.