Searched defs:month (Results 1 - 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/sql/
H A DDate.java45 * year, month, and day.
51 * @param month 0 to 11
56 public Date(int year, int month, int day) { argument
57 super(year, month, day);
133 int month = Integer.parseInt(mm);
136 if ((month >= 1 && month <= MAX_MONTH) && (day >= 1 && day <= MAX_DAY)) {
137 d = new Date(year - 1900, month - 1, day);
157 int month = super.getMonth() + 1;
165 buf[5] = Character.forDigit(month/1
[all...]
H A DTimestamp.java77 * @param month 0 to 11
87 public Timestamp(int year, int month, int date, argument
89 super(year, month, date, hour, minute, second);
176 int month = 0;
226 month = Integer.parseInt(mm);
229 if ((month >= 1 && month <= MAX_MONTH) && (day >= 1 && day <= MAX_DAY)) {
263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos);
277 int month = super.getMonth() + 1;
301 if (month < 1
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeFactory.java148 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
150 * year, month, day, hour, minute, and second.
177 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
179 * year, month, day, hour, minute, and second.
197 * e.g. leap years have different days in the month = {@link java.util.Calendar#FEBRUARY}
371 * e.g. leap years have different days in the month = {@link java.util.Calendar#FEBRUARY}
525 * whose lexical representation contains only year and month components.
564 * whose lexical representation contains only year and month components.
583 * e.g. leap years have different days in the month = {@link java.util.Calendar#FEBRUARY}
586 * <p>Any remaining milliseconds after determining the year and month ar
620 newDurationYearMonth( final boolean isPositive, final BigInteger year, final BigInteger month) argument
653 newDurationYearMonth( final boolean isPositive, final int year, final int month) argument
788 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument
824 newXMLGregorianCalendar( final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) argument
886 newXMLGregorianCalendarDate( final int year, final int month, final int day, final int timezone) argument
[all...]
H A DXMLGregorianCalendar.java85 * <a name="datetimefield-month"/>
87 * <td> month </td>
95 * <td> Independent of month, max range is 1 to 31 or {@link DatatypeConstants#FIELD_UNDEFINED}.<br/>
96 * The normative value constraint stated relative to month
197 * int month,
206 * int month,
216 * int month,
272 * <p>Set month.</p>
276 * @param month value constraints summarized in <a href="#datetimefield-month">mont
282 setMonth(int month) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldTimeZoneTest.java29 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { argument
H A DCalendarTest.java147 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { argument
152 calendar.set(year, month, day, hour, minute);
154 assertEquals(month, calendar.get(Calendar.MONTH));
199 int year, int month, int day, int hour, int minute) {
201 assertEquals("month", month, calendar.get(Calendar.MONTH));
198 assertCalendarEquals(Calendar calendar, int year, int month, int day, int hour, int minute) argument
H A DGregorianCalendarTest.java391 public int getOffset(int era, int year, int month, int day, int dayOfWeek, argument
393 return timeZone.getOffset(era, year, month, day, dayOfWeek, milliseconds);
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DJulianCalendar.java148 public long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache) { argument
149 boolean isJan1 = month == JANUARY && dayOfMonth == 1;
156 return cache.getCachedJan1() + getDayOfYear(jyear, month, dayOfMonth) - 1;
168 if (month > 0) {
169 days += ((367 * (long) month) - 362) / 12;
171 days += CalendarUtils.floorDivide((367 * (long) month) - 362, 12);
173 if (month > FEBRUARY) {
199 int month = 12 * priorDays + 373;
200 if (month > 0) {
201 month /
[all...]
H A DBaseCalendar.java152 public Date setNormalizedDate(int normalizedYear, int month, int dayOfMonth) { argument
154 setMonth(month).setDayOfMonth(dayOfMonth);
197 int month = bdate.getMonth();
198 if (month < JANUARY || month > DECEMBER) {
202 if (d <= 0 || d > getMonthLength(bdate.getNormalizedYear(), month)) {
276 long month = bdate.getMonth();
277 if (month <= 0) {
278 long xm = 1L - month;
280 month
332 getMonthLength(int year, int month) argument
346 getDayOfYear(int year, int month, int dayOfMonth) argument
364 getFixedDate(int year, int month, int dayOfMonth, BaseCalendar.Date cache) argument
[all...]
H A DCalendarDate.java69 private int month; field in class:CalendarDate
166 return month;
169 public CalendarDate setMonth(int month) { argument
170 if (this.month != month) {
171 this.month = month;
179 month += n;
305 public CalendarDate setDate(int year, int month, int dayOfMonth) { argument
307 setMonth(month);
312 addDate(int year, int month, int dayOfMonth) argument
[all...]
H A DImmutableGregorianDate.java73 public CalendarDate setMonth(int month) { argument
149 public CalendarDate setDate(int year, int month, int dayOfMonth) { argument
153 public CalendarDate addDate(int year, int month, int dayOfMonth) { argument
/libcore/ojluni/src/main/java/java/util/
H A DDate.java46 * 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, dat
194 Date(int year, int month, int date) argument
217 Date(int year, int month, int date, int hrs, int min) argument
241 Date(int year, int month, int date, int hrs, int min, int sec) argument
315 UTC(int year, int month, int date, int hrs, int min, int sec) argument
721 setMonth(int month) argument
[all...]
H A DTimeZone.java184 * @param month the month in the given date.
186 * @param day the day-in-month of the given date.
196 public abstract int getOffset(int era, int year, int month, int day, argument
H A DGregorianCalendar.java137 * to 6. Week 1 of a month (the days with <code>WEEK_OF_MONTH =
139 * <code>getMinimalDaysInFirstWeek()</code> contiguous days in that month,
141 * week 1 of a year, week 1 of a month may be shorter than 7 days, need
143 * the previous month. Days of a month before week 1 have a
630 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
634 public GregorianCalendar(int year, int month, int dayOfMonth) { argument
635 this(year, month, dayOfMonth, 0, 0, 0, 0);
643 * @param month the value used to set the <code>MONTH</code> calendar field in the calendar.
651 public GregorianCalendar(int year, int month, in argument
671 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) argument
692 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, int millis) argument
3211 monthLength(int month, int year) argument
3221 monthLength(int month) argument
[all...]
H A DSimpleTimeZone.java62 * starts or ends is specified by a combination of <em>month</em>,
63 * <em>day-of-month</em>, and <em>day-of-week</em> values. The <em>month</em>
71 * <li><b>Exact day of month</b><br>
72 * To specify an exact day of month, set the <em>month</em> and
73 * <em>day-of-month</em> to an exact value, and <em>day-of-week</em> to zero. For
74 * example, to specify March 1, set the <em>month</em> to {@link Calendar#MARCH
75 * MARCH}, <em>day-of-month</em> to 1, and <em>day-of-week</em> to 0.</li>
77 * <li><b>Day of week on or after day of month</
604 getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) argument
745 getTransition(BaseCalendar cal, BaseCalendar.Date cdate, int mode, int year, int month, int dayOfMonth, int dayOfWeek, int timeOfDay) argument
[all...]
H A DCalendar.java90 * the first month of the calendar system has value <code>MONTH ==
118 * <code>DAY_OF_MONTH</code> values between 1 and the length of the month. A
133 * first week of the month or year as a reference point. The first week of a
134 * month or year is defined as the earliest seven day period beginning on
136 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks
147 * year and month with no day of month), or there may be inconsistent
270 * rule 2, since it is expected to change when the month changes in a
289 * component with increment and decrement buttons for the month, day, and
291 * interface reads January 31, 1999 and the user presses the month
1223 set(int year, int month, int date) argument
1247 set(int year, int month, int date, int hourOfDay, int minute) argument
1274 set(int year, int month, int date, int hourOfDay, int minute, int second) argument
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java357 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { argument
375 calc += mlen[month] * MILLISECONDS_PER_DAY;
689 private int month; field in class:ZoneInfo.WallTime
1064 public void setMonth(int month) { argument
1065 this.month = month;
1105 return month;
1142 calendar.set(Calendar.MONTH, month);
1152 month = calendar.get(Calendar.MONTH);

Completed in 450 milliseconds