Lines Matching defs:month

46  * functions.  It allowed the interpretation of dates as year, month, day, hour,
95 * year, month, date, hours, minutes, and seconds values, the
100 * <li>A month is represented by an integer from 0 to 11; 0 is January,
102 * <li>A date (day of month) is represented by an integer from 1 to 31
182 * specified by the <code>year</code>, <code>month</code>, and
186 * @param month the month between 0-11.
187 * @param date the day of the month between 1-31.
190 * replaced by <code>Calendar.set(year + 1900, month, date)</code>
191 * or <code>GregorianCalendar(year + 1900, month, date)</code>.
194 public Date(int year, int month, int date) {
195 this(year, month, date, 0, 0, 0);
201 * the <code>year</code>, <code>month</code>, <code>date</code>,
206 * @param month the month between 0-11.
207 * @param date the day of the month between 1-31.
212 * replaced by <code>Calendar.set(year + 1900, month, date,
214 * month, date, hrs, min)</code>.
217 public Date(int year, int month, int date, int hrs, int min) {
218 this(year, month, date, hrs, min, 0);
224 * by the <code>year</code>, <code>month</code>, <code>date</code>,
229 * @param month the month between 0-11.
230 * @param date the day of the month between 1-31.
236 * replaced by <code>Calendar.set(year + 1900, month, date,
238 * month, date, hrs, min, sec)</code>.
241 public Date(int year, int month, int date, int hrs, int min, int sec) {
243 // month is 0-based. So we have to normalize month to support Long.MAX_VALUE.
244 if (month >= 12) {
245 y += month / 12;
246 month %= 12;
247 } else if (month < 0) {
248 y += CalendarUtils.floorDivide(month, 12);
249 month = CalendarUtils.mod(month, 12);
253 cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0);
291 * arguments are interpreted as a year, month, day of the month,
300 * @param month the month between 0-11.
301 * @param date the day of the month between 1-31.
309 * replaced by <code>Calendar.set(year + 1900, month, date,
311 * month, date, hrs, min, sec)</code>, using a UTC
315 public static long UTC(int year, int month, int date,
318 // month is 0-based. So we have to normalize month to support Long.MAX_VALUE.
319 if (month >= 12) {
320 y += month / 12;
321 month %= 12;
322 } else if (month < 0) {
323 y += CalendarUtils.floorDivide(month, 12);
324 month = CalendarUtils.mod(month, 12);
326 int m = month + 1;
383 * <li>The number is less than 70, and both a month and a day of
384 * the month have already been recognized</li>
399 * <li>If the number is followed by a slash, it is regarded as a month
401 * to <tt>11</tt>), unless a month has already been recognized, in
402 * which case it is regarded as a day of the month.
407 * otherwise, it is regarded as a day of the month. </ul><p>
424 * specifying a month and is converted to a number (<tt>0</tt> to
439 * recognized, then the year, month, day of month, hour, minute, and
441 * applied. Otherwise, the year, month, day of month, hour, minute, and
568 } else if (action <= 13) { // month!
656 * with the month, date, hour, minute, and second the same as
673 * Returns a number representing the month that contains or begins
678 * @return the month represented by this date.
689 * Sets the month of this date to the specified value. This
691 * in time within the specified month, with the year, date, hour,
694 * the month is set to June, then the new date will be treated as
697 * @param month the month value between 0-11.
700 * replaced by <code>Calendar.set(Calendar.MONTH, int month)</code>.
703 public void setMonth(int month) {
705 if (month >= 12) {
706 y = month / 12;
707 month %= 12;
708 } else if (month < 0) {
709 y = CalendarUtils.floorDivide(month, 12);
710 month = CalendarUtils.mod(month, 12);
716 d.setMonth(month + 1); // adjust 0-based to 1-based month numbering
720 * Returns the day of the month represented by this <tt>Date</tt> object.
722 * representing the day of the month that contains or begins with the
726 * @return the day of the month represented by this date.
738 * Sets the day of the month of this <tt>Date</tt> object to the
741 * month, with the year, month, hour, minute, and second the same
747 * @param date the day of the month value between 1-31.
796 * in time within the specified hour of the day, with the year, month,
828 * in time within the specified minute of the hour, with the year, month,
862 * the year, month, date, hour, and minute the same as before, as
1003 * <li><tt>mon</tt> is the month (<tt>Jan, Feb, Mar, Apr, May, Jun,
1005 * <li><tt>dd</tt> is the day of the month (<tt>01</tt> through
1089 * <li><i>d</i> is the day of the month (<tt>1</tt> through <tt>31</tt>),
1091 * <li><i>mon</i> is the month (<tt>Jan, Feb, Mar, Apr, May, Jun, Jul,