Lines Matching refs:year
148 { 1, 1, 5000000, 5000000}, // YEAR
184 * Determine whether a year is a leap year in the Islamic civil calendar
186 UBool IslamicCalendar::civilLeapYear(int32_t year)
188 return (14 + 11 * year) % 30 < 11;
192 * Return the day # on which the given year starts. Days are counted
195 int32_t IslamicCalendar::yearStart(int32_t year) {
197 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30);
199 return trueMonthStart(12*(year-1));
207 * @param year The hijri year
208 * @param year The hijri month, 0-based
210 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const {
213 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30);
215 return trueMonthStart(12*(year-1) + month);
315 * @param year The hijri year
316 * @param year The hijri month, 0-based
336 * Return the number of days in the given Islamic year
352 // Return JD of start of given month/year
368 int32_t year;
370 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
372 year = internalGet(UCAL_YEAR, 1); // Default to year 1
374 return year;
382 * <li>YEAR
394 int32_t year, month, dayOfMonth, dayOfYear;
400 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 );
401 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 );
403 startDate = monthStart(year, month);
427 year = months / 12 + 1;
431 dayOfMonth = (days - monthStart(year, month)) + 1;
433 // Now figure out the day of the year.
434 dayOfYear = (days - monthStart(year, 0) + 1);
437 internalSet(UCAL_YEAR, year);
438 internalSet(UCAL_EXTENDED_YEAR, year);