Home
last modified time | relevance | path

Searched refs:withHour (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java75 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/
DTestLocalDateTime.java152 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()
DTestOffsetDateTime.java175 OffsetDateTime test = base.withHour(11); in test_withHour_noChange()
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java844 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
DOffsetTime.java744 public OffsetTime withHour(int hour) { in withHour() method in OffsetTime
745 return with(time.withHour(hour), offset); in withHour()
DOffsetDateTime.java1054 public OffsetDateTime withHour(int hour) { in withHour() method in OffsetDateTime
1055 return with(dateTime.withHour(hour), offset); in withHour()
DZonedDateTime.java1420 public ZonedDateTime withHour(int hour) { in withHour() method in ZonedDateTime
1421 return resolveLocal(dateTime.withHour(hour)); in withHour()
DLocalDateTime.java1046 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/
DTCKLocalTime.java1117 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()
DTCKZonedDateTime.java1500 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…
DTCKOffsetTime.java806 OffsetTime test = base.withHour(15);
813 OffsetTime test = base.withHour(11);
DTCKLocalDateTime.java1276 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);
DTCKOffsetDateTime.java872 OffsetDateTime test = base.withHour(15);
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java253 public java.time.OffsetDateTime withHour(int hour) { in withHour() method in OffsetDateTime