Lines Matching refs:month

136  * to 6.  Week 1 of a month (the days with <code>WEEK_OF_MONTH =
138 * <code>getMinimalDaysInFirstWeek()</code> contiguous days in that month,
140 * week 1 of a year, week 1 of a month may be shorter than 7 days, need
142 * the previous month. Days of a month before week 1 have a
629 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
633 public GregorianCalendar(int year, int month, int dayOfMonth) {
634 this(year, month, dayOfMonth, 0, 0, 0, 0);
642 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
650 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay,
652 this(year, month, dayOfMonth, hourOfDay, minute, 0, 0);
660 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
670 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay,
672 this(year, month, dayOfMonth, hourOfDay, minute, second, 0);
680 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
691 GregorianCalendar(int year, int month, int dayOfMonth,
696 this.set(MONTH, month);
917 int month = internalGet(MONTH) + amount;
921 if (month >= 0) {
922 y_amount = month/12;
924 y_amount = (month+1)/12 - 1;
949 if (month >= 0) {
950 set(MONTH, (int) (month % 12));
952 // month < 0
953 month %= 12;
954 if (month < 0) {
955 month += 12;
957 set(MONTH, JANUARY + month);
1096 * be 31 in the month April. <code>DAY_OF_MONTH</code> is set to the closest possible
1199 // Rolling the month involves both pinning the final value to [0, 11]
1211 // Keep the day of month in the range. We don't want to spill over
1212 // into the next month; e.g., we don't want jan31 + 1 mo -> feb31 ->
1220 // year and month due to the cutover.
1287 // to month and day of month.
1305 long month1; // fixed date of the first day (usually 1) of the month
1306 int monthLength; // actual month length
1315 // the first day of week of the month.
1319 // week starts from the previous month.
1332 // nfd is out of the month.
1361 // It may not be a regular month. Convert the date and range to
1831 // may be in the Gregorian cutover month
1871 * We know we've exceeded the maximum when either the month, date,
1873 * check for month, date, and time here because the year and era are
1875 * added to check the month and date in the future for some reason,
2362 int month = cdate.getMonth() - 1; // 0-based
2368 internalSet(MONTH, month);
2783 int month = JANUARY;
2787 month = internalGet(MONTH);
2789 // If the month is out of range, adjust it into range
2790 if (month > DECEMBER) {
2791 year += month / 12;
2792 month %= 12;
2793 } else if (month < JANUARY) {
2795 year += CalendarUtils.floorDivide(month, 12, rem);
2796 month = rem[0];
2801 // the first day of either `month' or January in 'year'.
2802 long fixedDate = cal.getFixedDate(year, month + 1, 1,
2807 // We are on the first day of the month. Just add the
2843 // We are basing this on the day-of-week-in-month. The only
2844 // trickiness occurs if the day-of-week-in-month is
2858 int lastDate = monthLength(month, year) + (7 * (dowim + 1));
2979 * Returns the fixed date of the first date of the month (usually
2980 * the 1st of the month) before the specified date.
2982 * @param date the date for which the first day of the month is
3000 // The cutover happened in the month.
3004 // The "gap" fits in the same month.
3010 // Use the cutover date as the first day of the month.
3014 // The cutover happened before the month.
3050 * Returns the length of the specified month in the specified
3055 private final int monthLength(int month, int year) {
3056 return isLeapYear(year) ? LEAP_MONTH_LENGTH[month] : MONTH_LENGTH[month];
3060 * Returns the length of the specified month in the year provided
3065 private final int monthLength(int month) {
3070 return monthLength(month, year);
3115 * month to jump around. E.g., we don't want Jan 31 + 1 month to go to Mar
3117 * problem call this method to retain the proper month.