/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeTextPrinting.java | 191 assertEquals(f.format(dt.withDayOfMonth(1)), "1st"); in test_appendTextMap_DOM() 192 assertEquals(f.format(dt.withDayOfMonth(2)), "2nd"); in test_appendTextMap_DOM() 193 assertEquals(f.format(dt.withDayOfMonth(3)), "3rd"); in test_appendTextMap_DOM()
|
D | TCKDateTimeFormatters.java | 1110 private ZonedDateTime endDate = date.withYear(2005).withMonth(1).withDayOfMonth(2); in weekDate()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 99 return date.withDayOfMonth(newDayOfMonth); in next() 101 date = date.withDayOfMonth(1); in next() 111 return date.withDayOfMonth(newDayOfMonth); in previous() 117 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); in previous() 140 LocalDate t = TEST_2007_07_15.withDayOfMonth(15); in test_withDayOfMonth_noChange_same()
|
D | TestMonthDay.java | 112 assertSame(test.withDayOfMonth(30), test); in test_withDayOfMonth_noChangeSame()
|
D | TestOffsetDateTime.java | 162 OffsetDateTime test = base.withDayOfMonth(30); in test_withDayOfMonth_noChange()
|
D | TestLocalDateTime.java | 140 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withDayOfMonth(15); in test_withDayOfMonth_noChange()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKMonthDay.java | 552 assertEquals(MonthDay.of(6, 30).withDayOfMonth(1), MonthDay.of(6, 1)); in test_withDayOfMonth() 557 MonthDay.of(6, 30).withDayOfMonth(31); in test_withDayOfMonth_invalid() 562 assertEquals(MonthDay.of(2, 1).withDayOfMonth(29), MonthDay.of(2, 29)); in test_withDayOfMonth_adjustToValidFeb() 568 assertEquals(test.withDayOfMonth(30), test); in test_withDayOfMonth_noChangeEqual() 573 MonthDay.of(6, 30).withDayOfMonth(0); in test_withDayOfMonth_tooLow() 578 MonthDay.of(6, 30).withDayOfMonth(32); in test_withDayOfMonth_tooHigh()
|
D | TCKLocalDate.java | 460 return date.withDayOfMonth(newDayOfMonth); 462 date = date.withDayOfMonth(1); 472 return date.withDayOfMonth(newDayOfMonth); 478 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); 933 LocalDate t = TEST_2007_07_15.withDayOfMonth(1); 939 TEST_2007_07_15.withDayOfMonth(32); 944 LocalDate.of(2007, 11, 30).withDayOfMonth(31);
|
D | TCKZonedDateTime.java | 1435 ZonedDateTime test = base.withDayOfMonth(15); 1436 …assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withDayOfMonth(15), ZONE_01… 1442 ZonedDateTime test = base.withDayOfMonth(30); 1448 LocalDateTime.of(2007, 7, 2, 11, 30).atZone(ZONE_PARIS).withDayOfMonth(32); 1453 TEST_DATE_TIME.withDayOfMonth(0); 1458 LocalDateTime.of(2007, 6, 2, 11, 30).atZone(ZONE_PARIS).withDayOfMonth(31);
|
D | TCKLocalDateTime.java | 1236 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withDayOfMonth(1); 1242 LocalDateTime.of(2007, 11, 30, 12, 30).withDayOfMonth(32); 1247 LocalDateTime.of(2007, 11, 30, 12, 30).withDayOfMonth(31);
|
D | TCKOffsetDateTime.java | 843 OffsetDateTime test = base.withDayOfMonth(15);
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 1021 public OffsetDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in OffsetDateTime 1022 return with(dateTime.withDayOfMonth(dayOfMonth), offset); in withDayOfMonth()
|
D | MonthDay.java | 558 public MonthDay withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in MonthDay
|
D | ZonedDateTime.java | 1374 public ZonedDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in ZonedDateTime 1375 return resolveLocal(dateTime.withDayOfMonth(dayOfMonth)); in withDayOfMonth()
|
D | LocalDateTime.java | 1016 public LocalDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in LocalDateTime 1017 return with(date.withDayOfMonth(dayOfMonth), time); in withDayOfMonth()
|
D | LocalDate.java | 1022 case DAY_OF_MONTH: return withDayOfMonth((int) newValue); in with() 1089 public LocalDate withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in LocalDate
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 245 public java.time.OffsetDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 175 LocalDate day1 = day.withDayOfMonth(1); in test_weekOfMonthField()
|