Lines Matching full:month
149 { 0, 0, 11, 11}, // MONTH
204 * Return the day # on which the given month starts. Days are counted
208 * @param year The hijri month, 0-based
210 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const {
212 return (int32_t)uprv_ceil(29.5*month)
215 return trueMonthStart(12*(year-1) + month);
220 * Find the day number on which a particular month of the true/lunar
223 * @param month The month in question, origin 0 from the Hijri epoch
225 * @return The day number on which the given month starts.
227 int32_t IslamicCalendar::trueMonthStart(int32_t month) const
230 int32_t start = CalendarCache::get(&gMonthCache, month, status);
233 // Make a guess at when the month started, using the average length
235 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay;
244 // The month has already started
254 // Preceding month has not ended yet.
264 CalendarCache::put(&gMonthCache, month, start, status);
313 * Return the length (in days) of the given month.
316 * @param year The hijri month, 0-based
319 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const {
324 length = 29 + (month+1) % 2;
325 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) {
329 month = 12*(extendedYear-1) + month;
330 length = trueMonthStart(month+1) - trueMonthStart(month) ;
343 int32_t month = 12*(extendedYear-1);
344 return (trueMonthStart(month + 12) - trueMonthStart(month));
352 // Return JD of start of given month/year
356 int32_t IslamicCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */) const {
357 return monthStart(eyear, month) + 1948439;
383 * <li>MONTH
394 int32_t year, month, dayOfMonth, dayOfYear;
401 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 );
402 month = month<11?month:11;
403 startDate = monthStart(year, month);
416 // If we're near the end of the month, assume next month and search backwards
423 // If it was after the date in question, back up a month and try again
428 month = months % 12;
431 dayOfMonth = (days - monthStart(year, month)) + 1;
439 internalSet(UCAL_MONTH, month);