Lines Matching refs:year
225 int32_t year = get(UCAL_YEAR, status); in add() local
231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
238 ++year; in add()
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
252 --year; in add()
257 set(UCAL_YEAR, year); in add()
317 int32_t year = get(UCAL_YEAR, status); in roll() local
319 UBool leapYear = isLeapYear(year); in roll()
320 int32_t yearLength = monthsInYear(year); in roll()
387 int32_t HebrewCalendar::startOfYear(int32_t year, UErrorCode &status) in startOfYear() argument
390 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear()
393 int32_t months = (235 * year - 234) / 19; // # of months before year in startOfYear()
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
418 CalendarCache::put(&gCache, year, day, status); in startOfYear()
441 int32_t HebrewCalendar::yearType(int32_t year) const in yearType()
443 int32_t yearLength = handleGetYearLength(year); in yearType()
471 UBool HebrewCalendar::isLeapYear(int32_t year) { in isLeapYear() argument
473 int32_t x = (year*12 + 17) % 19; in isLeapYear()
477 int32_t HebrewCalendar::monthsInYear(int32_t year) { in monthsInYear() argument
478 return isLeapYear(year) ? 13 : 12; in monthsInYear()
567 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) in handleComputeFields() local
568 int32_t ys = startOfYear(year, status); // 1st day of year in handleComputeFields()
573 year--; in handleComputeFields()
574 ys = startOfYear(year, status); in handleComputeFields()
579 int32_t type = yearType(year); in handleComputeFields()
580 UBool isLeap = isLeapYear(year); in handleComputeFields()
604 internalSet(UCAL_YEAR, year); in handleComputeFields()
605 internalSet(UCAL_EXTENDED_YEAR, year); in handleComputeFields()
619 int32_t year; in handleGetExtendedYear() local
621 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
623 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
625 return year; in handleGetExtendedYear()