Lines Matching refs:month
176 { 0, 0, 11, 11}, // MONTH
233 * extended year and month.
236 * whether or not the given month is a leap month.
239 int32_t ChineseCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const {
240 int32_t thisStart = handleComputeMonthStart(extendedYear, month, TRUE) -
252 * <li>MONTH
310 * given month in the given extended year.
313 * whether the given month is a leap month.
315 * @param month the zero-based month. The month is also determined
318 * day of the given month and year
321 int32_t ChineseCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const {
325 // If the month is out of range, adjust it into range, and
327 if (month < 0 || month > 11) {
328 double m = month;
330 month = (int32_t)m;
335 int32_t newMoon = newMoonNear(theNewYear + month * 29, TRUE);
351 // This will modify the MONTH and IS_LEAP_MONTH fields (only)
355 if (month != internalGet(UCAL_MONTH) ||
410 int32_t moon = day - dom + 1; // New moon (start of this month)
413 // followed by a leap month (D&R p. 185).
415 // Compute the adjusted month number m. This is zero-based
418 int32_t m = get(UCAL_MONTH, status); // 0-based month
424 // Check for a prior leap month. (In the
425 // following, month 0 is the first month of the
426 // year.) Month 0 is never followed by a leap
427 // month, and we know month m is not a leap month.
428 // moon1 will be the start of month 0 if there is
429 // no leap month between month 0 and month m;
430 // otherwise it will be the start of month 1.
616 * Return true if the given month lacks a major solar term.
631 * Return true if there is a leap month on or after month newMoon1 and
632 * at or before month newMoon2.
658 * <code>handleComputeFields()</code>, or it can just set the MONTH and
666 * @param gmonth the Gregorian month of the given date
668 * DAY_OF_MONTH, and DAY_OF_YEAR fields. In either case set the MONTH
676 // the position of month 11, which always contains the solstice.
687 // Find the start of the month after month 11. This will be either
688 // the prior month 12 or leap month 11 (very rare). Also find the
689 // start of the following month 11.
692 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month
696 int32_t month = synodicMonthsBetween(firstMoon, thisMoon);
698 month--;
700 if (month < 1) {
701 month += 12;
708 internalSet(UCAL_MONTH, month-1); // Convert from 1-based to 0-based
717 if (month < 11 ||
735 // date is in month 11, leap 11, 12. There is never a leap 12.
786 * start position, pinning the day of month if necessary. The start
787 * position is given as a local days number for the start of the month
788 * and a day-of-month. Used by add() and roll().
789 * @param newMoon the local days of the first day of the month of the
791 * @param dom the 1-based day-of-month of the start position
798 // Move to the middle of the month before our target month.
801 // Search forward to the target month's new moon