Home
last modified time | relevance | path

Searched refs:withMonth (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKMonthDay.java518 assertEquals(MonthDay.of(6, 30).withMonth(1), MonthDay.of(1, 30)); in test_withMonth()
523 assertEquals(MonthDay.of(7, 31).withMonth(6), MonthDay.of(6, 30)); in test_withMonth_adjustToValid()
528 assertEquals(MonthDay.of(7, 31).withMonth(2), MonthDay.of(2, 29)); in test_withMonth_adjustToValidFeb()
534 assertEquals(test.withMonth(6), test); in test_withMonth_int_noChangeEqual()
539 MonthDay.of(6, 30).withMonth(0); in test_withMonth_tooLow()
544 MonthDay.of(6, 30).withMonth(13); in test_withMonth_tooHigh()
DTCKYearMonth.java604 assertEquals(test.withMonth(1), YearMonth.of(2008, 1)); in test_withMonth()
610 assertEquals(test.withMonth(6), test); in test_withMonth_int_noChange_equal()
616 test.withMonth(0); in test_withMonth_tooLow()
622 test.withMonth(13); in test_withMonth_tooHigh()
DTCKZonedDateTime.java1393 … assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withMonth(1), ZONE_0100));
1408 ZonedDateTime test = base.withMonth(1);
1409 … assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withMonth(1), ZONE_0100));
1415 ZonedDateTime test = base.withMonth(6);
1421 TEST_DATE_TIME.withMonth(13);
1426 TEST_DATE_TIME.withMonth(0);
DTCKLocalDate.java912 LocalDate t = TEST_2007_07_15.withMonth(1);
918 TEST_2007_07_15.withMonth(13);
923 LocalDate t = LocalDate.of(2007, 12, 31).withMonth(11);
DTCKLocalDateTime.java1215 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withMonth(1);
1221 TEST_2007_07_15_12_30_40_987654321.withMonth(13);
1226 LocalDateTime t = LocalDateTime.of(2007, 12, 31, 12, 30).withMonth(11);
DTCKOffsetDateTime.java833 OffsetDateTime test = base.withMonth(1);
/libcore/ojluni/src/test/java/time/test/java/time/
DTestMonthDay.java107 assertSame(test.withMonth(6), test); in test_withMonth_int_noChangeSame()
DTestOffsetDateTime.java155 OffsetDateTime test = base.withMonth(6); in test_withMonth_noChange()
DTestLocalDate.java134 LocalDate t = TEST_2007_07_15.withMonth(7); in test_withMonth_int_noChange_same()
DTestLocalDateTime.java133 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withMonth(7); in test_withMonth_int_noChange()
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java681 case MONTH_OF_YEAR: return withMonth((int) newValue); in with()
716 public YearMonth withMonth(int month) { in withMonth() method in YearMonth
DOffsetDateTime.java1004 public OffsetDateTime withMonth(int month) { in withMonth() method in OffsetDateTime
1005 return with(dateTime.withMonth(month), offset); in withMonth()
DMonthDay.java520 public MonthDay withMonth(int month) { in withMonth() method in MonthDay
DLocalDateTime.java999 public LocalDateTime withMonth(int month) { in withMonth() method in LocalDateTime
1000 return with(date.withMonth(month), time); in withMonth()
DZonedDateTime.java1351 public ZonedDateTime withMonth(int month) { in withMonth() method in ZonedDateTime
1352 return resolveLocal(dateTime.withMonth(month)); in withMonth()
DLocalDate.java1027 case MONTH_OF_YEAR: return withMonth((int) newValue); in with()
1069 public LocalDate withMonth(int month) { in withMonth() method in LocalDate
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java241 public java.time.OffsetDateTime withMonth(int month) { in withMonth() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java1110 private ZonedDateTime endDate = date.withYear(2005).withMonth(1).withDayOfMonth(2); in weekDate()