/libcore/luni/src/test/java/libcore/java/time/ |
D | ZonedDateTimeTest.java | 85 checkOfInstant(LDT_IN_GAP, OFFSET_P1, ZONE_VIENNA, LDT_IN_GAP.plusHours(1), OFFSET_P2); in test_ofInstant() 148 checkOfLocal(LDT_IN_GAP, ZONE_VIENNA, OFFSET_P1, LDT_IN_GAP.plusHours(1), OFFSET_P2); in test_ofLocal() 149 checkOfLocal(LDT_IN_GAP, ZONE_VIENNA, OFFSET_P2, LDT_IN_GAP.plusHours(1), OFFSET_P2); in test_ofLocal()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 842 case HOUR_OF_AMPM: return plusHours(newValue - (hour % 12)); in with() 843 … case CLOCK_HOUR_OF_AMPM: return plusHours((newValue == 12 ? 0 : newValue) - (hour % 12)); in with() 846 case AMPM_OF_DAY: return plusHours((newValue - (hour / 12)) * 12); in with() 1046 case HOURS: return plusHours(amountToAdd); in plus() 1047 case HALF_DAYS: return plusHours((amountToAdd % 2) * 12); in plus() 1066 public LocalTime plusHours(long hoursToAdd) { in plusHours() method in LocalTime 1216 return plusHours(-(hoursToSubtract % HOURS_PER_DAY)); in minusHours()
|
D | OffsetDateTime.java | 1285 public OffsetDateTime plusHours(long hours) { in plusHours() method in OffsetDateTime 1286 return with(dateTime.plusHours(hours), offset); in plusHours() 1475 … return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours)); in minusHours()
|
D | Duration.java | 739 public Duration plusHours(long hoursToAdd) { in plusHours() method in Duration 883 …return (hoursToSubtract == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-ho… in minusHours()
|
D | ZonedDateTime.java | 1718 public ZonedDateTime plusHours(long hours) { in plusHours() method in ZonedDateTime 1719 return resolveInstant(dateTime.plusHours(hours)); in plusHours() 1960 … return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours)); in minusHours()
|
D | LocalDateTime.java | 1185 case HOURS: return plusHours(amountToAdd); in plus() 1186 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 1294 public LocalDateTime plusHours(long hours) { in plusHours() method in LocalDateTime
|
D | OffsetTime.java | 891 public OffsetTime plusHours(long hours) { in plusHours() method in OffsetTime 892 return with(time.plusHours(hours), offset); in plusHours()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 313 case HOURS: return plusHours(amountToAdd); in plus() 314 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 325 private ChronoLocalDateTimeImpl<D> plusHours(long hours) { in plusHours() method in ChronoLocalDateTimeImpl
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 266 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusHours(0); in test_plusHours_noChange() 272 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(23, 0)).plusHours(1); in test_plusHours_toMidnight() 278 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(11, 0)).plusHours(1); in test_plusHours_toMidday()
|
D | TestOffsetDateTime.java | 237 OffsetDateTime test = base.plusHours(0); in test_plusHours_zero()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1476 t = t.plusHours(1); in test_plusHours_one() 1485 LocalTime t = base.plusHours(i); in test_plusHours_fromZero() 1494 LocalTime t = base.plusHours(i); in test_plusHours_fromOne() 1501 LocalTime t = TEST_12_30_40_987654321.plusHours(0); in test_plusHours_noChange_equal() 1507 LocalTime t = LocalTime.of(23, 0).plusHours(1); in test_plusHours_toMidnight_equal() 1513 LocalTime t = LocalTime.of(11, 0).plusHours(1); in test_plusHours_toMidday_equal() 1519 LocalTime t = LocalTime.of(2, 30).plusHours(Long.MAX_VALUE); in test_plusHours_big() 1521 assertEquals(t, LocalTime.of(2, 30).plusHours(hours)); in test_plusHours_big()
|
D | TCKDuration.java | 1214 t = t.plusHours(amount); in plusHours_long() 1221 t.plusHours(Long.MAX_VALUE/3600); in plusHours_long_overflowTooBig() 1227 t.plusHours(Long.MIN_VALUE/3600); in plusHours_long_overflowTooSmall()
|
D | TCKLocalDateTime.java | 1765 t = t.plusHours(1); 1783 LocalDateTime dt = base.plusHours(i); 1784 t = t.plusHours(1); 1802 LocalDateTime dt = base.plusHours(i); 1804 t = t.plusHours(1);
|
D | TCKZonedDateTime.java | 1102 …ZonedDateTime expected = ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.plusHours(1), ZONE_02… 1775 assertEquals(base.plusHours(amount), expected); 2150 LocalDateTime ldt = LocalDateTime.of(1970, 1, 1, 0, 0).plusHours(1); 2160 LocalDateTime ldt = LocalDateTime.of(1970, 1, 1, 0, 0).plusHours(1);
|
D | TCKOffsetTime.java | 916 OffsetTime test = base.plusHours(13); 923 OffsetTime test = base.plusHours(0);
|
D | TCKOffsetDateTime.java | 998 OffsetDateTime test = base.plusHours(13);
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 193 public java.time.Duration plusHours(long hoursToAdd) { in plusHours() method in Duration
|
D | OffsetDateTime.java | 297 public java.time.OffsetDateTime plusHours(long hours) { in plusHours() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 942 assertEquals(zdt.plusHours(2).toLocalDateTime(), LocalDateTime.of(2011, 12, 31, 1, 0)); in test_Apia_jumpOverInternationalDateLine_M10_to_P14() 962 assertEquals(zdt.plusHours(2).toLocalDateTime(), LocalDateTime.of(1892, 7, 4, 1, 0, 0)); in test_Apia_jumpForwardOverInternationalDateLine_P12_to_M12()
|