Home | History | Annotate | Download | only in i18n

Lines Matching refs:month

142     {        0,        0,       11,       11}, // MONTH
198 * extended year and month.
201 * whether or not the given month is a leap month.
204 int32_t ChineseCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const {
205 int32_t thisStart = handleComputeMonthStart(extendedYear, month, TRUE) -
217 * <li>MONTH
275 * given month in the given extended year.
278 * whether the given month is a leap month.
280 * @param month the zero-based month. The month is also determined
283 * day of the given month and year
286 int32_t ChineseCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const {
290 // If the month is out of range, adjust it into range, and
292 if (month < 0 || month > 11) {
293 double m = month;
295 month = (int32_t)m;
300 int32_t newMoon = newMoonNear(theNewYear + month * 29, TRUE);
316 // This will modify the MONTH and IS_LEAP_MONTH fields (only)
320 if (month != internalGet(UCAL_MONTH) ||
375 int32_t moon = day - dom + 1; // New moon (start of this month)
378 // followed by a leap month (D&R p. 185).
380 // Compute the adjusted month number m. This is zero-based
383 int32_t m = get(UCAL_MONTH, status); // 0-based month
389 // Check for a prior leap month. (In the
390 // following, month 0 is the first month of the
391 // year.) Month 0 is never followed by a leap
392 // month, and we know month m is not a leap month.
393 // moon1 will be the start of month 0 if there is
394 // no leap month between month 0 and month m;
395 // otherwise it will be the start of month 1.
557 * Return true if the given month lacks a major solar term.
572 * Return true if there is a leap month on or after month newMoon1 and
573 * at or before month newMoon2.
599 * <code>handleComputeFields()</code>, or it can just set the MONTH and
607 * @param gmonth the Gregorian month of the given date
609 * DAY_OF_MONTH, and DAY_OF_YEAR fields. In either case set the MONTH
617 // the position of month 11, which always contains the solstice.
628 // Find the start of the month after month 11. This will be either
629 // the prior month 12 or leap month 11 (very rare). Also find the
630 // start of the following month 11.
633 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month
637 int32_t month = synodicMonthsBetween(firstMoon, thisMoon);
639 month--;
641 if (month < 1) {
642 month += 12;
649 internalSet(UCAL_MONTH, month-1); // Convert from 1-based to 0-based
655 if (month < 11 ||
672 // date is in month 11, leap 11, 12. There is never a leap 12.
723 * start position, pinning the day of month if necessary. The start
724 * position is given as a local days number for the start of the month
725 * and a day-of-month. Used by add() and roll().
726 * @param newMoon the local days of the first day of the month of the
728 * @param dom the 1-based day-of-month of the start position
735 // Move to the middle of the month before our target month.
738 // Search forward to the target month's new moon