Lines Matching refs:month

161     int32_t mask = (int32_t) (0x01 << (11 - m));    // set mask for bit corresponding to month
245 // a month as having 31 days. Since date parsing now uses range checks based
246 // on the table below, we need to change the range for last day of month to
317 * Return the day # on which the given month starts. Days are counted
321 * @param year The hijri month, 0-based
323 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const {
325 return (int32_t)uprv_ceil(29.5*month)
328 return trueMonthStart(12*(year-1) + month);
331 for(int i=0; i< month; i++){
339 * Find the day number on which a particular month of the true/lunar
342 * @param month The month in question, origin 0 from the Hijri epoch
344 * @return The day number on which the given month starts.
346 int32_t IslamicCalendar::trueMonthStart(int32_t month) const
349 int32_t start = CalendarCache::get(&gMonthCache, month, status);
352 // Make a guess at when the month started, using the average length
354 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay;
363 // The month has already started
373 // Preceding month has not ended yet.
383 CalendarCache::put(&gMonthCache, month, start, status);
432 * Return the length (in days) of the given month.
435 * @param year The hijri month, 0-based
438 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const {
444 length = 29 + (month+1) % 2;
445 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) {
449 month = 12*(extendedYear-1) + month;
450 length = trueMonthStart(month+1) - trueMonthStart(month) ;
452 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month);
466 int32_t month = 12*(extendedYear-1);
467 return (trueMonthStart(month + 12) - trueMonthStart(month));
480 // Return JD of start of given month/year
484 int32_t IslamicCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */) const {
485 return monthStart(eyear, month) + 1948439;
522 int32_t year, month, dayOfMonth, dayOfYear;
531 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 );
532 month = month<11?month:11;
533 startDate = monthStart(year, month);
546 // If we're near the end of the month, assume next month and search backwards
553 // If it was after the date in question, back up a month and try again
558 month = months % 12;
564 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 );
565 month = month<11?month:11;
566 startDate = monthStart(year, month);
588 month = m;
592 year=month=0;
595 dayOfMonth = (days - monthStart(year, month)) + 1;
604 internalSet(UCAL_MONTH, month);