Lines Matching refs:year
361 UBool IslamicCalendar::civilLeapYear(int32_t year) in civilLeapYear() argument
363 return (14 + 11 * year) % 30 < 11; in civilLeapYear()
370 int32_t IslamicCalendar::yearStart(int32_t year) const{ in yearStart()
372 (cType == UMALQURA && (year < UMALQURA_YEAR_START || year > UMALQURA_YEAR_END))) in yearStart()
374 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart()
376 return trueMonthStart(12*(year-1)); in yearStart()
378 year -= UMALQURA_YEAR_START; in yearStart()
380 int32_t yrStartLinearEstimate = (int32_t)((354.36720 * (double)year) + 460322.05 + 0.5); in yearStart()
382 return yrStartLinearEstimate + umAlQuraYrStartEstimateFix[year]; in yearStart()
393 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const { in monthStart() argument
397 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); in monthStart()
399 return trueMonthStart(12*(year-1) + month); in monthStart()
401 int32_t ms = yearStart(year); in monthStart()
403 ms+= handleGetMonthLength(year, i); in monthStart()
582 int32_t year; in handleGetExtendedYear() local
584 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
586 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
588 return year; in handleGetExtendedYear()
608 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
617 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
618 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
620 startDate = monthStart(year, month); in handleComputeFields()
644 year = months / 12 + 1; in handleComputeFields()
650 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
651 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
653 startDate = monthStart(year, month); in handleComputeFields()
674 year = y; in handleComputeFields()
679 year=month=0; in handleComputeFields()
682 dayOfMonth = (days - monthStart(year, month)) + 1; in handleComputeFields()
685 dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields()
689 internalSet(UCAL_YEAR, year); in handleComputeFields()
690 internalSet(UCAL_EXTENDED_YEAR, year); in handleComputeFields()