Lines Matching full:year
151 { 1, 1, 5000000, 5000000}, // YEAR
187 * Determine whether a year is a leap year in the Islamic civil calendar
189 UBool IslamicCalendar::civilLeapYear(int32_t year)
191 return (14 + 11 * year) % 30 < 11;
195 * Return the day # on which the given year starts. Days are counted
198 int32_t IslamicCalendar::yearStart(int32_t year) {
200 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30);
202 return trueMonthStart(12*(year-1));
210 * @param year The hijri year
211 * @param year The hijri month, 0-based
213 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const {
216 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30);
218 return trueMonthStart(12*(year-1) + month);
318 * @param year The hijri year
319 * @param year The hijri month, 0-based
339 * Return the number of days in the given Islamic year
355 // Return JD of start of given month/year
371 int32_t year;
373 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
375 year = internalGet(UCAL_YEAR, 1); // Default to year 1
377 return year;
385 * <li>YEAR
397 int32_t year, month, dayOfMonth, dayOfYear;
403 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 );
404 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 );
406 startDate = monthStart(year, month);
430 year = months / 12 + 1;
434 dayOfMonth = (days - monthStart(year, month)) + 1;
436 // Now figure out the day of the year.
437 dayOfYear = (days - monthStart(year, 0) + 1);
440 internalSet(UCAL_YEAR, year);
441 internalSet(UCAL_EXTENDED_YEAR, year);