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.java100 return date.withDayOfMonth(newDayOfMonth); in next()
102 date = date.withDayOfMonth(1); in next()
112 return date.withDayOfMonth(newDayOfMonth); in previous()
118 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); in previous()
141 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.java166 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.java463 return date.withDayOfMonth(newDayOfMonth);
465 date = date.withDayOfMonth(1);
475 return date.withDayOfMonth(newDayOfMonth);
481 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear())));
978 LocalDate t = TEST_2007_07_15.withDayOfMonth(1);
984 TEST_2007_07_15.withDayOfMonth(32);
989 LocalDate.of(2007, 11, 30).withDayOfMonth(31);
DTCKZonedDateTime.java1430 ZonedDateTime test = base.withDayOfMonth(15);
1431 …assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withDayOfMonth(15), ZONE_01…
1437 ZonedDateTime test = base.withDayOfMonth(30);
1443 LocalDateTime.of(2007, 7, 2, 11, 30).atZone(ZONE_PARIS).withDayOfMonth(32);
1448 TEST_DATE_TIME.withDayOfMonth(0);
1453 LocalDateTime.of(2007, 6, 2, 11, 30).atZone(ZONE_PARIS).withDayOfMonth(31);
DTCKLocalDateTime.java1230 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withDayOfMonth(1);
1236 LocalDateTime.of(2007, 11, 30, 12, 30).withDayOfMonth(32);
1241 LocalDateTime.of(2007, 11, 30, 12, 30).withDayOfMonth(31);
DTCKOffsetDateTime.java828 OffsetDateTime test = base.withDayOfMonth(15);
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java559 public MonthDay withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in MonthDay
DOffsetDateTime.java1021 public OffsetDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in OffsetDateTime
1022 return with(dateTime.withDayOfMonth(dayOfMonth), offset); in withDayOfMonth()
DLocalDateTime.java1012 public LocalDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in LocalDateTime
1013 return with(date.withDayOfMonth(dayOfMonth), time); in withDayOfMonth()
DZonedDateTime.java1373 public ZonedDateTime withDayOfMonth(int dayOfMonth) { in withDayOfMonth() method in ZonedDateTime
1374 return resolveLocal(dateTime.withDayOfMonth(dayOfMonth)); in withDayOfMonth()
DLocalDate.java1050 case DAY_OF_MONTH: return withDayOfMonth((int) newValue); in with()
1117 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.txt11369 method public java.time.LocalDate withDayOfMonth(int);
11434 method public java.time.LocalDateTime withDayOfMonth(int);
11553 method public java.time.MonthDay withDayOfMonth(int);
11622 method public java.time.OffsetDateTime withDayOfMonth(int);
11890 method public java.time.ZonedDateTime withDayOfMonth(int);