Home
last modified time | relevance | path

Searched refs:getDayOfMonth (Results 1 – 25 of 36) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java118 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfMonth_nonLeap()
131 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfMonth_leap()
152 assertEquals(test.getDayOfMonth(), month.length(false)); in test_lastDayOfMonth_nonLeap()
165 assertEquals(test.getDayOfMonth(), month.length(true)); in test_lastDayOfMonth_leap()
186 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfNextMonth_nonLeap()
199 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfNextMonth_leap()
220 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfYear_nonLeap()
233 assertEquals(test.getDayOfMonth(), 1); in test_firstDayOfYear_leap()
254 assertEquals(test.getDayOfMonth(), 31); in test_lastDayOfYear_nonLeap()
267 assertEquals(test.getDayOfMonth(), 31); in test_lastDayOfYear_leap()
[all …]
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java286 if (!(lgd.getMonth() == BaseCalendar.JANUARY && lgd.getDayOfMonth() == 1)) {
428 set(DAY_OF_MONTH, d.getDayOfMonth()); in add()
436 set(DAY_OF_MONTH, d.getDayOfMonth()); in add()
606 if (internalGet(DAY_OF_MONTH) != d.getDayOfMonth()) { in roll()
656 if (jd.getDayOfMonth() > d.getDayOfMonth()) { in roll()
657 jd.setDayOfMonth(d.getDayOfMonth()); in roll()
660 if (jd.getDayOfMonth() == d.getDayOfMonth() in roll()
663 jd.setDayOfMonth(d.getDayOfMonth() - 1); in roll()
668 set(DAY_OF_MONTH, jd.getDayOfMonth()); in roll()
680 if (jd.getDayOfMonth() < d.getDayOfMonth()) { in roll()
[all …]
DGregorianCalendar.java1350 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1402 dayOfMonth = d.getDayOfMonth(); in roll()
1426 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1443 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1478 set(d.getYear(), d.getMonth() - 1, d.getDayOfMonth()); in roll()
1513 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1612 return Math.max(MIN_VALUES[field], d.getDayOfMonth()); in getGreatestMinimum()
1687 return d.getDayOfMonth(); in getActualMinimum()
1756 if (!gc.isCutoverYear(normalizedYear) || date.getDayOfMonth() == value) { in getActualMaximum()
1769 value = d.getDayOfMonth(); in getActualMaximum()
[all …]
DDate.java756 return normalize().getDayOfMonth(); in getDate()
1061 CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 2).append(' '); // dd in toString()
1148 CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 1).append(' '); // d in toGMTString()
1242 int d = date.getDayOfMonth(); in normalize()
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseDate.java284 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay()
293 jdate.getMonth(), jdate.getDayOfMonth()); in ofYearDay()
395 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in lengthOfYear()
451 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in range()
484 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in getLong()
505 …Era(sunEra).setYear(year).setMonth(isoDate.getMonthValue()).setDayOfMonth(isoDate.getDayOfMonth()); in toPrivateJapaneseDate()
DJapaneseEra.java186 LocalDate isoDate = LocalDate.of(date.getYear(), date.getMonth(), date.getDayOfMonth());
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java103 assertEquals(test.getDayOfMonth(), 1 + (i >= 23 * 60 * 60 ? 1 : 0)); in factory_ofInstant_allSecsInDay()
161 assertEquals(test.getDayOfMonth(), 1); in factory_ofInstant_minWithMinOffset()
177 assertEquals(test.getDayOfMonth(), 1); in factory_ofInstant_minWithMaxOffset()
193 assertEquals(test.getDayOfMonth(), 31); in factory_ofInstant_maxWithMinOffset()
209 assertEquals(test.getDayOfMonth(), 31); in factory_ofInstant_maxWithMaxOffset()
DTestMonthDay.java95 assertEquals(test.getDayOfMonth(), d); in check()
DTestLocalDate.java98 int newDayOfMonth = date.getDayOfMonth() + 1; in next()
110 int newDayOfMonth = date.getDayOfMonth() - 1; in previous()
/libcore/ojluni/src/main/java/sun/util/calendar/
DImmutableGregorianDate.java81 public int getDayOfMonth() { in getDayOfMonth() method in ImmutableGregorianDate
82 return date.getDayOfMonth(); in getDayOfMonth()
DLocalGregorianCalendar.java114 CalendarUtils.sprintf0d(sb, getDayOfMonth(), 2); in toString()
256 tmp.setEra(era).setDate(date.getYear(), date.getMonth(), date.getDayOfMonth()); in validate()
312 int day = ldate.getDayOfMonth(); in normalize()
313 int sinceDay = sinceDate.getDayOfMonth(); in normalize()
DBaseCalendar.java200 int d = bdate.getDayOfMonth(); in validate()
234 long d = (long)bdate.getDayOfMonth() + days; in normalize()
346 date.getDayOfMonth()); in getDayOfYear()
362 date.getDayOfMonth(), in getFixedDate()
DJulianCalendar.java107 CalendarUtils.sprintf0d(sb, getDayOfMonth(), 2); in toString()
DCalendarDate.java185 public int getDayOfMonth() { in getDayOfMonth() method in CalendarDate
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java192 return MonthDay.of(now.getMonth(), now.getDayOfMonth()); in now()
488 public int getDayOfMonth() { in getDayOfMonth() method in MonthDay
DLocalDate.java799 public int getDayOfMonth() { in getDayOfMonth() method in LocalDate
1660 long packed1 = getProlepticMonth() * 32L + getDayOfMonth(); // no overflow in monthsUntil()
1661 long packed2 = end.getProlepticMonth() * 32L + end.getDayOfMonth(); // no overflow in monthsUntil()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java148 … Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth()); in test_date_print()
160 … Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth()); in test_date_parse()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java63 assertEquals(values[4], localDate.getDayOfMonth()); in test_dateYear()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DImmutableGregorianDate.java75 public int getDayOfMonth() { in getDayOfMonth() method in ImmutableGregorianDate
DCalendarDate.java83 public int getDayOfMonth() { in getDayOfMonth() method in CalendarDate
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java276 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2));
307 assertEquals(test.getDayOfMonth(), 31);
337 assertEquals(test.getDayOfMonth(), d);
476 assertEquals(test.getDayOfMonth(), 1 + (i >= 23 * 60 * 60 ? 1 : 0));
504 assertEquals(test.getDayOfMonth(), 1);
521 assertEquals(test.getDayOfMonth(), 1);
538 assertEquals(test.getDayOfMonth(), 31);
555 assertEquals(test.getDayOfMonth(), 31);
733 assertEquals(t.getDayOfMonth(), d);
766 assertEquals(t.getDayOfMonth(), d);
[all …]
DTCKMonthDay.java146 assertEquals(test.getDayOfMonth(), d); in check()
198 assertEquals(test.getDayOfMonth(), 31); in now_Clock()
481 assertEquals(a.getDayOfMonth(), d); in test_get()
DTCKOffsetDateTime.java262 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2));
279 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60) ? 1 : 2);
297 assertEquals(test.getDayOfMonth(), 31);
333 assertEquals(test.getDayOfMonth(), d);
428 assertEquals(t.getDayOfMonth(), d);
505 assertEquals(a.getDayOfMonth(), localDate.getDayOfMonth());
DTCKLocalDate.java210 assertEquals(test.getDayOfMonth(), d); in check()
285 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2)); in now_Clock_allSecsInDay_utc()
297 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60) ? 1 : 2);
309 assertEquals(test.getDayOfMonth(), (i >= -24 * 60 * 60 ? 31 : 30));
461 int newDayOfMonth = date.getDayOfMonth() + 1;
473 int newDayOfMonth = date.getDayOfMonth() - 1;
588 assertEquals(t.getDayOfMonth(), d, parsable);
791 assertEquals(a.getDayOfMonth(), d);
2605 long sum = stream.mapToInt(LocalDate::getDayOfMonth).sum();
/libcore/ojluni/src/main/java/java/util/zip/
DZipUtils.java138 ldt.getDayOfMonth() << 16 | in javaToDosTime()

12