Home
last modified time | relevance | path

Searched refs:withDayOfMonth (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeTextPrinting.java191 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()
DTCKDateTimeFormatters.java1110 private ZonedDateTime endDate = date.withYear(2005).withMonth(1).withDayOfMonth(2); in weekDate()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java99 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()
DTestMonthDay.java112 assertSame(test.withDayOfMonth(30), test); in test_withDayOfMonth_noChangeSame()
DTestOffsetDateTime.java162 OffsetDateTime test = base.withDayOfMonth(30); in test_withDayOfMonth_noChange()
DTestLocalDateTime.java140 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/
DTCKMonthDay.java552 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()
DTCKLocalDate.java460 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);
DTCKZonedDateTime.java1435 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);
DTCKLocalDateTime.java1236 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);
DTCKOffsetDateTime.java843 OffsetDateTime test = base.withDayOfMonth(15);
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java1021 public OffsetDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in OffsetDateTime
1022 return with(dateTime.withDayOfMonth(dayOfMonth), offset); in withDayOfMonth()
DMonthDay.java558 public MonthDay withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in MonthDay
DZonedDateTime.java1374 public ZonedDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in ZonedDateTime
1375 return resolveLocal(dateTime.withDayOfMonth(dayOfMonth)); in withDayOfMonth()
DLocalDateTime.java1016 public LocalDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in LocalDateTime
1017 return with(date.withDayOfMonth(dayOfMonth), time); in withDayOfMonth()
DLocalDate.java1022 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/
DOffsetDateTime.java245 public java.time.OffsetDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java175 LocalDate day1 = day.withDayOfMonth(1); in test_weekOfMonthField()
/libcore/api/
Dcurrent.txt10755 method public java.time.LocalDate withDayOfMonth(int);
10819 method public java.time.LocalDateTime withDayOfMonth(int);
10938 method public java.time.MonthDay withDayOfMonth(int);
11007 method public java.time.OffsetDateTime withDayOfMonth(int);
11274 method public java.time.ZonedDateTime withDayOfMonth(int);