Home | History | Annotate | Download | only in i18n

Lines Matching refs:year

36     int16_t year;
40 // Year Month Day
333 if(eyear == kEraInfo[era].year) {
334 // Yes, we're in the first year of this era.
346 if(eyear == kEraInfo[era].year) {
363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year
365 int32_t year;
369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch);
371 // Subtract one because year starts at 1
372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1;
374 return year;
382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year
388 // Note that if the year is == the current era year, then we use
391 fprintf(stderr, "== %d \n", year);
394 if (year > kEraInfo[kCurrentEra].year) {
408 int32_t diff = year - kEraInfo[i].year;
412 diff,low, high, i, kEraInfo[i].month-1, kEraInfo[i].day, kEraInfo[i].year, internalGet(UCAL_MONTH), internalGet(UCAL_DATE),year);
436 fprintf(stderr, ". low=%d, high=%d, i=%d, diff=%d.. %d\n", low, high, i, diff, year);
443 fprintf(stderr, " low[era]=%d,.. %d\n", low, year);
446 // adjust the year to count from the start of that era. Note that
451 internalSet(UCAL_YEAR, year - kEraInfo[low].year + 1);
453 fprintf(stderr, " Set ERA=%d, year=%d\n", low, year-kEraInfo[low].year+1);
494 return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - kEraInfo[kCurrentEra].year;
514 int32_t nextEraYear = kEraInfo[era + 1].year;
518 int32_t maxYear = nextEraYear - kEraInfo[era].year + 1; // 1-base