Home | History | Annotate | Download | only in i18n

Lines Matching refs:month

178     {        0,        0,       11,       11}, // MONTH
235 * extended year and month.
238 * whether or not the given month is a leap month.
241 int32_t ChineseCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const {
242 int32_t thisStart = handleComputeMonthStart(extendedYear, month, TRUE) -
254 * <li>MONTH
312 * given month in the given extended year.
315 * whether the given month is a leap month.
317 * @param month the zero-based month. The month is also determined
320 * day of the given month and year
323 int32_t ChineseCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const {
327 // If the month is out of range, adjust it into range, and
329 if (month < 0 || month > 11) {
330 double m = month;
332 month = (int32_t)m;
337 int32_t newMoon = newMoonNear(theNewYear + month * 29, TRUE);
353 // This will modify the MONTH and IS_LEAP_MONTH fields (only)
357 if (month != internalGet(UCAL_MONTH) ||
412 int32_t moon = day - dom + 1; // New moon (start of this month)
415 // followed by a leap month (D&R p. 185).
417 // Compute the adjusted month number m. This is zero-based
420 int32_t m = get(UCAL_MONTH, status); // 0-based month
426 // Check for a prior leap month. (In the
427 // following, month 0 is the first month of the
428 // year.) Month 0 is never followed by a leap
429 // month, and we know month m is not a leap month.
430 // moon1 will be the start of month 0 if there is
431 // no leap month between month 0 and month m;
432 // otherwise it will be the start of month 1.
618 * Return true if the given month lacks a major solar term.
633 * Return true if there is a leap month on or after month newMoon1 and
634 * at or before month newMoon2.
660 * <code>handleComputeFields()</code>, or it can just set the MONTH and
668 * @param gmonth the Gregorian month of the given date
670 * DAY_OF_MONTH, and DAY_OF_YEAR fields. In either case set the MONTH
678 // the position of month 11, which always contains the solstice.
689 // Find the start of the month after month 11. This will be either
690 // the prior month 12 or leap month 11 (very rare). Also find the
691 // start of the following month 11.
694 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month
698 int32_t month = synodicMonthsBetween(firstMoon, thisMoon);
700 month--;
702 if (month < 1) {
703 month += 12;
710 internalSet(UCAL_MONTH, month-1); // Convert from 1-based to 0-based
719 if (month < 11 ||
737 // date is in month 11, leap 11, 12. There is never a leap 12.
788 * start position, pinning the day of month if necessary. The start
789 * position is given as a local days number for the start of the month
790 * and a day-of-month. Used by add() and roll().
791 * @param newMoon the local days of the first day of the month of the
793 * @param dom the 1-based day-of-month of the start position
800 // Move to the middle of the month before our target month.
803 // Search forward to the target month's new moon