/libcore/luni/src/test/java/libcore/java/time/ |
D | ZonedDateTimeTest.java | 75 checkOfInstant(LDT_P1, OFFSET_P2, ZONE_VIENNA, LDT_P1.minusDays(1).withHour(23), OFFSET_P1); in test_ofInstant() 77 checkOfInstant(LDT_P2, OFFSET_P1, ZONE_VIENNA, LDT_P2.withHour(1), OFFSET_P2); in test_ofInstant() 80 checkOfInstant(LDT_P1, ZoneOffset.ofHours(-10), ZONE_VIENNA, LDT_P1.withHour(11), in test_ofInstant()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 152 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withHour(12); in test_withHour_noChange() 158 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(1, 0)).withHour(0); in test_withHour_toMidnight() 164 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(1, 0)).withHour(12); in test_withHour_toMidday()
|
D | TestOffsetDateTime.java | 175 OffsetDateTime test = base.withHour(11); in test_withHour_noChange()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 844 case HOUR_OF_DAY: return withHour((int) newValue); in with() 845 case CLOCK_HOUR_OF_DAY: return withHour((int) (newValue == 24 ? 0 : newValue)); in with() 863 public LocalTime withHour(int hour) { in withHour() method in LocalTime
|
D | OffsetTime.java | 744 public OffsetTime withHour(int hour) { in withHour() method in OffsetTime 745 return with(time.withHour(hour), offset); in withHour()
|
D | OffsetDateTime.java | 1054 public OffsetDateTime withHour(int hour) { in withHour() method in OffsetDateTime 1055 return with(dateTime.withHour(hour), offset); in withHour()
|
D | ZonedDateTime.java | 1420 public ZonedDateTime withHour(int hour) { in withHour() method in ZonedDateTime 1421 return resolveLocal(dateTime.withHour(hour)); in withHour()
|
D | LocalDateTime.java | 1046 public LocalDateTime withHour(int hour) { in withHour() method in LocalDateTime 1047 LocalTime newTime = time.withHour(hour); in withHour()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1117 t = t.withHour(i); in test_withHour_normal() 1124 LocalTime t = TEST_12_30_40_987654321.withHour(12); in test_withHour_noChange_equal() 1130 LocalTime t = LocalTime.of(1, 0).withHour(0); in test_withHour_toMidnight_equal() 1136 LocalTime t = LocalTime.of(1, 0).withHour(12); in test_withHour_toMidday_equal() 1142 TEST_12_30_40_987654321.withHour(-1); in test_withHour_hourTooLow() 1147 TEST_12_30_40_987654321.withHour(24); in test_withHour_hourTooHigh()
|
D | TCKZonedDateTime.java | 1500 ZonedDateTime test = base.withHour(15); 1501 … assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withHour(15), ZONE_0100)); 1507 ZonedDateTime test = base.withHour(11); 2050 …ZonedDateTime before = TEST_PARIS_GAP_2008_03_30_02_30.withHour(0).withMinute(0).atZone(ZONE_PARIS… 2051 …ZonedDateTime after = TEST_PARIS_GAP_2008_03_30_02_30.withHour(0).withMinute(0).plusDays(1).atZone… 2059 …ZonedDateTime before = TEST_PARIS_OVERLAP_2008_10_26_02_30.withHour(0).withMinute(0).atZone(ZONE_P… 2060 …ZonedDateTime after = TEST_PARIS_OVERLAP_2008_10_26_02_30.withHour(0).withMinute(0).plusDays(1).at…
|
D | TCKOffsetTime.java | 806 OffsetTime test = base.withHour(15); 813 OffsetTime test = base.withHour(11);
|
D | TCKLocalDateTime.java | 1276 t = t.withHour(i); 1283 TEST_2007_07_15_12_30_40_987654321.withHour(-1); 1288 TEST_2007_07_15_12_30_40_987654321.withHour(24);
|
D | TCKOffsetDateTime.java | 872 OffsetDateTime test = base.withHour(15);
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 253 public java.time.OffsetDateTime withHour(int hour) { in withHour() method in OffsetDateTime
|