/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 228 assertEquals(current.getMonth(), date.getMonth()); in test_parseLString() 261 assertEquals(current.getMonth(), date.getMonth()); in test_parseLString() 289 assertEquals(current.getMonth(), date.getMonth()); in test_parseLString() 303 assertEquals(current.getMonth(), date.getMonth()); in test_parseLString() 316 assertEquals(0, date.getMonth()); in test_parseLString() 336 assertEquals(current.getMonth(), date.getMonth()); in test_parseLString() 391 assertEquals("Months are different.", current.getMonth(), result.getMonth()); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 421 assertEquals("Months are different.", current.getMonth(), result.getMonth()); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 117 assertEquals(test.getMonth(), month); in test_firstDayOfMonth_nonLeap() 130 assertEquals(test.getMonth(), month); in test_firstDayOfMonth_leap() 151 assertEquals(test.getMonth(), month); in test_lastDayOfMonth_nonLeap() 164 assertEquals(test.getMonth(), month); in test_lastDayOfMonth_leap() 185 assertEquals(test.getMonth(), month.plus(1)); in test_firstDayOfNextMonth_nonLeap() 198 assertEquals(test.getMonth(), month.plus(1)); in test_firstDayOfNextMonth_leap() 219 assertEquals(test.getMonth(), Month.JANUARY); in test_firstDayOfYear_nonLeap() 232 assertEquals(test.getMonth(), Month.JANUARY); in test_firstDayOfYear_leap() 253 assertEquals(test.getMonth(), Month.DECEMBER); in test_lastDayOfYear_nonLeap() 266 assertEquals(test.getMonth(), Month.DECEMBER); in test_lastDayOfYear_leap() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 286 if (!(lgd.getMonth() == BaseCalendar.JANUARY && lgd.getDayOfMonth() == 1)) { 424 set(MONTH, d.getMonth() - 1); in add() 432 set(MONTH, d.getMonth() - 1); in add() 645 max = d.getMonth() - 1; in roll() 661 n = jd.getMonth() - 1; in roll() 669 min = d.getMonth() - 1; in roll() 685 n = jd.getMonth() - 1; in roll() 711 min = transition.getMonth() - 1; in roll() 716 max = transition.getMonth() - 1; in roll() 733 if (!(transition.getMonth() == BaseCalendar.JANUARY in roll() [all …]
|
D | GregorianCalendar.java | 843 gregorian = d.getMonth() < BaseCalendar.MARCH; in isLeapYear() 1352 set(MONTH, d.getMonth() - 1); in roll() 1428 assert d.getMonth()-1 == internalGet(MONTH); in roll() 1445 set(MONTH, d.getMonth() - 1); in roll() 1481 set(d.getYear(), d.getMonth() - 1, d.getDayOfMonth()); in roll() 1770 value = d.getMonth() - 1; in getActualMaximum() 1816 assert jan1 <= cal.getFixedDate(date.getNormalizedYear(), date.getMonth(), in getActualMaximum() 1818 assert nextJan1 >= cal.getFixedDate(date.getNormalizedYear(), date.getMonth(), in getActualMaximum() 1862 d.setDate(date.getYear(), date.getMonth(), 1); in getActualMaximum() 2397 gdate.getMonth(), in computeFields() [all …]
|
D | Date.java | 707 public int getMonth() { in getMonth() method in Date 708 return normalize().getMonth() - 1; // adjust 1-based to 0-based in getMonth() 1058 convertToAbbr(sb, wtb[date.getMonth() - 1 + 2 + 7]).append(' '); // MMM in toString() 1147 convertToAbbr(sb, wtb[date.getMonth() - 1 + 2 + 7]).append(' '); // MMM in toGMTString() 1239 int m = date.getMonth(); in normalize()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | BaseCalendar.java | 196 int month = bdate.getMonth(); in validate() 235 int m = bdate.getMonth(); in normalize() 275 long month = bdate.getMonth(); in normalizeMonth() 323 int month = gdate.getMonth(); in getMonthLength() 341 date.getMonth(), in getDayOfYear() 357 date.getMonth(), in getFixedDate()
|
D | ImmutableGregorianDate.java | 69 public int getMonth() { in getMonth() method in ImmutableGregorianDate 70 return date.getMonth(); in getMonth()
|
D | LocalGregorianCalendar.java | 113 CalendarUtils.sprintf0d(sb, getMonth(), 2).append('.'); in toString() 256 tmp.setEra(era).setDate(date.getYear(), date.getMonth(), date.getDayOfMonth()); in validate() 306 int month = ldate.getMonth(); in normalize() 307 int sinceMonth = sinceDate.getMonth(); in normalize()
|
D | CalendarDate.java | 165 public int getMonth() { in getMonth() method in CalendarDate 379 && getMonth() == date.getMonth() in isSameDate()
|
D | JulianCalendar.java | 106 CalendarUtils.sprintf0d(sb, getMonth(), 2).append('-'); in toString()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 98 if (newDayOfMonth <= date.getMonth().length(isIsoLeap(date.getYear()))) { in next() 102 if (date.getMonth() == Month.DECEMBER) { in next() 105 return date.with(date.getMonth().plus(1)); in next() 113 date = date.with(date.getMonth().minus(1)); in previous() 114 if (date.getMonth() == Month.DECEMBER) { in previous() 117 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); in previous()
|
D | TestOffsetDateTime_instants.java | 102 assertEquals(test.getMonth(), Month.JANUARY); in factory_ofInstant_allSecsInDay() 160 assertEquals(test.getMonth().getValue(), 1); in factory_ofInstant_minWithMinOffset() 176 assertEquals(test.getMonth().getValue(), 1); in factory_ofInstant_minWithMaxOffset() 192 assertEquals(test.getMonth().getValue(), 12); in factory_ofInstant_maxWithMinOffset() 208 assertEquals(test.getMonth().getValue(), 12); in factory_ofInstant_maxWithMaxOffset()
|
D | TestMonthDay.java | 94 assertEquals(test.getMonth().getValue(), m); in check()
|
/libcore/ojluni/src/main/java/java/time/ |
D | MonthDay.java | 191 return MonthDay.of(now.getMonth(), now.getDayOfMonth()); in now() 378 return ValueRange.of(1, getMonth().minLength(), getMonth().maxLength()); in range() 476 public Month getMonth() { in getMonth() method in MonthDay
|
D | YearMonth.java | 194 return YearMonth.of(now.getYear(), now.getMonth()); in now() 536 public Month getMonth() { in getMonth() method in YearMonth 585 return getMonth().length(isLeapYear()); in lengthOfMonth()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | XMLGregorianCalendar.java | 507 public abstract int getMonth(); in getMonth() method in XMLGregorianCalendar 693 + gc.getMonth() in hashCode()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipUtils.java | 103 return ((year - 1980) << 25 | (d.getMonth() + 1) << 21 | in javaToDosTime()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | Time.java | 171 public int getMonth() { in getMonth() method in Time
|
D | Date.java | 158 int month = super.getMonth() + 1; in toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalDate.java | 206 assertEquals(test.getMonth().getValue(), m); in check() 281 assertEquals(test.getMonth(), Month.JANUARY); in now_Clock_allSecsInDay_utc() 293 assertEquals(test.getMonth(), Month.JANUARY); 305 assertEquals(test.getMonth(), Month.DECEMBER); 459 if (newDayOfMonth <= date.getMonth().length(isIsoLeap(date.getYear()))) { 463 if (date.getMonth() == Month.DECEMBER) { 466 return date.with(date.getMonth().plus(1)); 474 date = date.with(date.getMonth().minus(1)); 475 if (date.getMonth() == Month.DECEMBER) { 478 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | DateTest.java | 245 assertEquals("Returned incorrect month", 9, d.getMonth()); in test_getMonth() 388 assertEquals("Set incorrect month", 0, d.getMonth()); in test_setMonthI()
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | ImmutableGregorianDate.java | 63 public int getMonth() { in getMonth() method in ImmutableGregorianDate
|
D | CalendarDate.java | 70 public int getMonth() { in getMonth() method in CalendarDate
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransitionRule.java | 167 assertEquals(test.getMonth(), Month.MARCH); in test_getters_floatingWeek() 183 assertEquals(test.getMonth(), Month.MARCH); in test_getters_floatingWeekBackwards() 199 assertEquals(test.getMonth(), Month.MARCH); in test_getters_fixedDate()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseDate.java | 283 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay() 292 jdate.getMonth(), jdate.getDayOfMonth()); in ofYearDay()
|