Lines Matching refs:month
81 { 0, 0, 11, 11}, // MONTH
111 * MONTH 0 0 11 11
220 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
229 set(UCAL_MONTH, month);
235 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
244 set(UCAL_MONTH, month);
252 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
262 set(UCAL_MONTH, month);
367 int32_t eyear, month, dayOfMonth, dayOfYear;
381 month = getGregorianMonth();
409 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month
410 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM
413 // fprintf(stderr, "%d - %d[%d] + 1\n", dayOfYear, isLeap?kLeapNumDays[month]:kNumDays[month], month );
416 // eyear,month,dayOfMonth,
435 internalSet(UCAL_MONTH, month);
529 int32_t GregorianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month,
535 // If the month is out of range, adjust it into range, and
537 if (month < 0 || month > 11) {
538 eyear += ClockMath::floorDivide(month, 12, month);
548 __FILE__, __LINE__, eyear,month, fIsGregorian?"T":"F", fInvertGregorian?"T":"F");
560 __FILE__, __LINE__, eyear, month, julianDay, gregShift);
569 if (month != 0) {
570 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month];
576 int32_t GregorianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const
578 // If the month is out of range, adjust it into range, and
580 if (month < 0 || month > 11) {
581 extendedYear += ClockMath::floorDivide(month, 12, month);
584 return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month];
593 GregorianCalendar::monthLength(int32_t month) const
596 return handleGetMonthLength(year, month);
602 GregorianCalendar::monthLength(int32_t month, int32_t year) const
604 return isLeapYear(year) ? kLeapMonthLength[month] : kMonthLength[month];
626 * After adjustments such as add(MONTH), add(YEAR), we don't want the
627 * month to jump around. E.g., we don't want Jan 31 + 1 month to go to Mar
629 * problem call this method to retain the proper month.
834 // Common code - see if we're in the cutover month of the cutover year
844 // value will be correct iff we actually are in the cutover month.
847 // A month containing the cutover is 10 days shorter.
909 // The default computation works except when the current month
947 // thing happens at the end of the month.
956 // the month. Then we discard the first partial week if it
963 // the first or the last day of the month. Easy, eh?
966 // work in the oddball month containing the Gregorian cutover.
967 // This month is 10 days shorter than usual, and also contains
968 // a discontinuity in the days; e.g., the default cutover month
969 // is Oct 1582, and goes from day of month 4 to day of month 15.
977 // Find the day of month, compensating for cutover discontinuity.
981 // of the month.
986 // Get the first day of the first full week of the month,
997 // day of the month.
1002 // Get the limit day for the blocked-off rectangular month; that
1003 // is, the day which is one past the last day of the month,
1004 // after the month has already been filled in with phantom days
1015 // Finally, pin to the real start and end of the month.
1028 // If we are in the cutover month, manipulate ms directly. Don't do
1091 * for some years the actual maximum for MONTH is 12, and for others 13.
1105 * 31 in that year, the actual maximum month might be Jul, whereas is
1130 * We know we've exceeded the maximum when either the month, date,
1132 * check for month, date, and time here because the year and era are
1134 * added to check the month and date in the future for some reason,