Home
last modified time | relevance | path

Searched refs:getMonth (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java228 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/
DTCKTemporalAdjusters.java117 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/
DJapaneseImperialCalendar.java286 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 …]
DGregorianCalendar.java843 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 …]
DDate.java707 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/
DBaseCalendar.java196 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()
DImmutableGregorianDate.java69 public int getMonth() { in getMonth() method in ImmutableGregorianDate
70 return date.getMonth(); in getMonth()
DLocalGregorianCalendar.java113 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()
DCalendarDate.java165 public int getMonth() { in getMonth() method in CalendarDate
379 && getMonth() == date.getMonth() in isSameDate()
DJulianCalendar.java106 CalendarUtils.sprintf0d(sb, getMonth(), 2).append('-'); in toString()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java98 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()
DTestOffsetDateTime_instants.java102 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()
DTestMonthDay.java94 assertEquals(test.getMonth().getValue(), m); in check()
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java191 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
DYearMonth.java194 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/
DXMLGregorianCalendar.java507 public abstract int getMonth(); in getMonth() method in XMLGregorianCalendar
693 + gc.getMonth() in hashCode()
/libcore/ojluni/src/main/java/java/util/zip/
DZipUtils.java103 return ((year - 1980) << 25 | (d.getMonth() + 1) << 21 | in javaToDosTime()
/libcore/ojluni/src/main/java/java/sql/
DTime.java171 public int getMonth() { in getMonth() method in Time
DDate.java158 int month = super.getMonth() + 1; in toString()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java206 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/
DDateTest.java245 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/
DImmutableGregorianDate.java63 public int getMonth() { in getMonth() method in ImmutableGregorianDate
DCalendarDate.java70 public int getMonth() { in getMonth() method in CalendarDate
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneOffsetTransitionRule.java167 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/
DJapaneseDate.java283 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay()
292 jdate.getMonth(), jdate.getDayOfMonth()); in ofYearDay()

12