Home
last modified time | relevance | path

Searched refs:getDayOfMonth (Results 1 – 25 of 33) 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.java287 if (!(lgd.getMonth() == BaseCalendar.JANUARY && lgd.getDayOfMonth() == 1)) {
426 set(DAY_OF_MONTH, d.getDayOfMonth()); in add()
434 set(DAY_OF_MONTH, d.getDayOfMonth()); in add()
602 if (internalGet(DAY_OF_MONTH) != d.getDayOfMonth()) { in roll()
652 if (jd.getDayOfMonth() > d.getDayOfMonth()) { in roll()
653 jd.setDayOfMonth(d.getDayOfMonth()); in roll()
656 if (jd.getDayOfMonth() == d.getDayOfMonth() in roll()
659 jd.setDayOfMonth(d.getDayOfMonth() - 1); in roll()
664 set(DAY_OF_MONTH, jd.getDayOfMonth()); in roll()
676 if (jd.getDayOfMonth() < d.getDayOfMonth()) { in roll()
[all …]
DGregorianCalendar.java1214 if (internalGet(DAY_OF_MONTH) != d.getDayOfMonth()) { in roll()
1353 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1405 dayOfMonth = d.getDayOfMonth(); in roll()
1429 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1446 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1481 set(d.getYear(), d.getMonth() - 1, d.getDayOfMonth()); in roll()
1516 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll()
1622 return Math.max(MIN_VALUES[field], d.getDayOfMonth()); in getGreatestMinimum()
1704 return d.getDayOfMonth(); in getActualMinimum()
1777 if (!gc.isCutoverYear(normalizedYear) || date.getDayOfMonth() == value) { in getActualMaximum()
[all …]
DDate.java757 return normalize().getDayOfMonth(); in getDate()
1059 CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 2).append(' '); // dd in toString()
1146 CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 1).append(' '); // d in toGMTString()
1240 int d = date.getDayOfMonth(); in normalize()
/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()
394 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in lengthOfYear()
454 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in range()
487 jcal.set(yearOfEra, isoDate.getMonthValue() - 1, isoDate.getDayOfMonth()); in getLong()
508 …Era(sunEra).setYear(year).setMonth(isoDate.getMonthValue()).setDayOfMonth(isoDate.getDayOfMonth()); in toPrivateJapaneseDate()
DJapaneseEra.java184 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.java97 int newDayOfMonth = date.getDayOfMonth() + 1; in next()
109 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()
DBaseCalendar.java200 int d = bdate.getDayOfMonth(); in validate()
234 long d = (long)bdate.getDayOfMonth() + days; in normalize()
342 date.getDayOfMonth()); in getDayOfYear()
358 date.getDayOfMonth(), in getFixedDate()
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()
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.java191 return MonthDay.of(now.getMonth(), now.getDayOfMonth()); in now()
487 public int getDayOfMonth() { in getDayOfMonth() method in MonthDay
DLocalDate.java770 public int getDayOfMonth() { in getDayOfMonth() method in LocalDate
1618 long packed1 = getProlepticMonth() * 32L + getDayOfMonth(); // no overflow in monthsUntil()
1619 long packed2 = end.getProlepticMonth() * 32L + end.getDayOfMonth(); // no overflow in monthsUntil()
DOffsetDateTime.java775 public int getDayOfMonth() { in getDayOfMonth() method in OffsetDateTime
776 return dateTime.getDayOfMonth(); in getDayOfMonth()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java146 … Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth()); in test_date_print()
158 … 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.java282 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2));
313 assertEquals(test.getDayOfMonth(), 31);
343 assertEquals(test.getDayOfMonth(), d);
482 assertEquals(test.getDayOfMonth(), 1 + (i >= 23 * 60 * 60 ? 1 : 0));
510 assertEquals(test.getDayOfMonth(), 1);
527 assertEquals(test.getDayOfMonth(), 1);
544 assertEquals(test.getDayOfMonth(), 31);
561 assertEquals(test.getDayOfMonth(), 31);
739 assertEquals(t.getDayOfMonth(), d);
771 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()
DTCKLocalDate.java207 assertEquals(test.getDayOfMonth(), d); in check()
282 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2)); in now_Clock_allSecsInDay_utc()
294 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60) ? 1 : 2);
306 assertEquals(test.getDayOfMonth(), (i >= -24 * 60 * 60 ? 31 : 30));
458 int newDayOfMonth = date.getDayOfMonth() + 1;
470 int newDayOfMonth = date.getDayOfMonth() - 1;
543 assertEquals(t.getDayOfMonth(), d, parsable);
746 assertEquals(a.getDayOfMonth(), d);
DTCKOffsetDateTime.java265 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60 ? 1 : 2));
282 assertEquals(test.getDayOfMonth(), (i < 24 * 60 * 60) ? 1 : 2);
300 assertEquals(test.getDayOfMonth(), 31);
336 assertEquals(test.getDayOfMonth(), d);
431 assertEquals(t.getDayOfMonth(), d);
520 assertEquals(a.getDayOfMonth(), localDate.getDayOfMonth());

12