• Home
  • Raw
  • Download

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()
397 int32_t months = (int32_t)ClockMath::floorDivide((235 * (int64_t)year - 234), (int64_t)19); in startOfYear()
410 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
416 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
422 CalendarCache::put(&gCache, year, day, status); in startOfYear()
445 int32_t HebrewCalendar::yearType(int32_t year) const in yearType()
447 int32_t yearLength = handleGetYearLength(year); in yearType()
475 UBool HebrewCalendar::isLeapYear(int32_t year) { in isLeapYear() argument
477 int32_t x = (year*12 + 17) % 19; in isLeapYear()
481 int32_t HebrewCalendar::monthsInYear(int32_t year) { in monthsInYear() argument
482 return isLeapYear(year) ? 13 : 12; in monthsInYear()
571 …int32_t year = (int32_t)(ClockMath::floorDivide((19. * m + 234.), 235.) + 1.); // Years (appro… in handleComputeFields() local
572 int32_t ys = startOfYear(year, status); // 1st day of year in handleComputeFields()
577 year--; in handleComputeFields()
578 ys = startOfYear(year, status); in handleComputeFields()
583 int32_t type = yearType(year); in handleComputeFields()
584 UBool isLeap = isLeapYear(year); in handleComputeFields()
608 internalSet(UCAL_YEAR, year); in handleComputeFields()
609 internalSet(UCAL_EXTENDED_YEAR, year); in handleComputeFields()
623 int32_t year; in handleGetExtendedYear() local
625 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
627 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
629 return year; in handleGetExtendedYear()