Lines Matching refs:year
228 int32_t year = get(UCAL_YEAR, status); in add() local
234 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
241 ++year; in add()
248 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
255 --year; in add()
260 set(UCAL_YEAR, year); in add()
320 int32_t year = get(UCAL_YEAR, status); in roll() local
322 UBool leapYear = isLeapYear(year); in roll()
323 int32_t yearLength = monthsInYear(year); in roll()
390 int32_t HebrewCalendar::startOfYear(int32_t year, UErrorCode &status) in startOfYear() argument
393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear()
396 int32_t months = (235 * year - 234) / 19; // # of months before year in startOfYear()
409 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
415 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
421 CalendarCache::put(&gCache, year, day, status); in startOfYear()
444 int32_t HebrewCalendar::yearType(int32_t year) const in yearType()
446 int32_t yearLength = handleGetYearLength(year); in yearType()
474 UBool HebrewCalendar::isLeapYear(int32_t year) { in isLeapYear() argument
476 int32_t x = (year*12 + 17) % 19; in isLeapYear()
480 int32_t HebrewCalendar::monthsInYear(int32_t year) { in monthsInYear() argument
481 return isLeapYear(year) ? 13 : 12; in monthsInYear()
570 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) in handleComputeFields() local
571 int32_t ys = startOfYear(year, status); // 1st day of year in handleComputeFields()
576 year--; in handleComputeFields()
577 ys = startOfYear(year, status); in handleComputeFields()
582 int32_t type = yearType(year); in handleComputeFields()
583 UBool isLeap = isLeapYear(year); in handleComputeFields()
607 internalSet(UCAL_YEAR, year); in handleComputeFields()
608 internalSet(UCAL_EXTENDED_YEAR, year); in handleComputeFields()
622 int32_t year; in handleGetExtendedYear() local
624 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
626 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
628 return year; in handleGetExtendedYear()