Home | History | Annotate | Download | only in i18n

Lines Matching refs:month

83     {        0,        0,       11,       11}, // MONTH
113 * MONTH 0 0 11 11
222 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
231 set(UCAL_MONTH, month);
237 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
246 set(UCAL_MONTH, month);
254 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date,
264 set(UCAL_MONTH, month);
369 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder;
383 month = getGregorianMonth();
411 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM
415 // fprintf(stderr, "%d - %d[%d] + 1\n", dayOfYear, isLeap?kLeapNumDays[month]:kNumDays[month], month );
418 // eyear,month,dayOfMonth,
437 internalSet(UCAL_MONTH, month);
531 int32_t GregorianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month,
537 // If the month is out of range, adjust it into range, and
539 if (month < 0 || month > 11) {
540 eyear += ClockMath::floorDivide(month, 12, month);
550 __FILE__, __LINE__, eyear,month, fIsGregorian?"T":"F", fInvertGregorian?"T":"F");
562 __FILE__, __LINE__, eyear, month, julianDay, gregShift);
571 if (month != 0) {
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month];
578 int32_t GregorianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const
580 // If the month is out of range, adjust it into range, and
582 if (month < 0 || month > 11) {
583 extendedYear += ClockMath::floorDivide(month, 12, month);
586 return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month];
595 GregorianCalendar::monthLength(int32_t month) const
598 return handleGetMonthLength(year, month);
604 GregorianCalendar::monthLength(int32_t month, int32_t year) const
606 return isLeapYear(year) ? kLeapMonthLength[month] : kMonthLength[month];
628 * After adjustments such as add(MONTH), add(YEAR), we don't want the
629 * month to jump around. E.g., we don't want Jan 31 + 1 month to go to Mar
631 * problem call this method to retain the proper month.
836 // Common code - see if we're in the cutover month of the cutover year
846 // value will be correct iff we actually are in the cutover month.
849 // A month containing the cutover is 10 days shorter.
912 // The default computation works except when the current month
950 // thing happens at the end of the month.
959 // the month. Then we discard the first partial week if it
966 // the first or the last day of the month. Easy, eh?
969 // work in the oddball month containing the Gregorian cutover.
970 // This month is 10 days shorter than usual, and also contains
971 // a discontinuity in the days; e.g., the default cutover month
972 // is Oct 1582, and goes from day of month 4 to day of month 15.
980 // Find the day of month, compensating for cutover discontinuity.
984 // of the month.
989 // Get the first day of the first full week of the month,
1000 // day of the month.
1005 // Get the limit day for the blocked-off rectangular month; that
1006 // is, the day which is one past the last day of the month,
1007 // after the month has already been filled in with phantom days
1018 // Finally, pin to the real start and end of the month.
1031 // If we are in the cutover month, manipulate ms directly. Don't do
1094 * for some years the actual maximum for MONTH is 12, and for others 13.
1108 * 31 in that year, the actual maximum month might be Jul, whereas is
1133 * We know we've exceeded the maximum when either the month, date,
1135 * check for month, date, and time here because the year and era are
1137 * added to check the month and date in the future for some reason,