Lines Matching refs:year
359 UBool IslamicCalendar::civilLeapYear(int32_t year) in civilLeapYear() argument
361 return (14 + 11 * year) % 30 < 11; in civilLeapYear()
368 int32_t IslamicCalendar::yearStart(int32_t year) const{ in yearStart()
370 (cType == UMALQURA && (year < UMALQURA_YEAR_START || year > UMALQURA_YEAR_END))) in yearStart()
372 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart()
374 return trueMonthStart(12*(year-1)); in yearStart()
376 year -= UMALQURA_YEAR_START; in yearStart()
378 int32_t yrStartLinearEstimate = (int32_t)((354.36720 * (double)year) + 460322.05 + 0.5); in yearStart()
380 return yrStartLinearEstimate + umAlQuraYrStartEstimateFix[year]; in yearStart()
391 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const { in monthStart() argument
395 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); in monthStart()
397 return trueMonthStart(12*(year-1) + month); in monthStart()
399 int32_t ms = yearStart(year); in monthStart()
401 ms+= handleGetMonthLength(year, i); in monthStart()
580 int32_t year; in handleGetExtendedYear() local
582 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
584 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
586 return year; in handleGetExtendedYear()
606 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
615 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
616 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
618 startDate = monthStart(year, month); in handleComputeFields()
642 year = months / 12 + 1; in handleComputeFields()
648 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
649 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
651 startDate = monthStart(year, month); in handleComputeFields()
672 year = y; in handleComputeFields()
677 year=month=0; in handleComputeFields()
680 dayOfMonth = (days - monthStart(year, month)) + 1; in handleComputeFields()
683 dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields()
687 internalSet(UCAL_YEAR, year); in handleComputeFields()
688 internalSet(UCAL_EXTENDED_YEAR, year); in handleComputeFields()