Home
last modified time | relevance | path

Searched refs:plusHours (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java85 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/
DLocalTime.java842 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()
DOffsetDateTime.java1285 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()
DDuration.java739 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()
DZonedDateTime.java1718 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()
DLocalDateTime.java1185 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
DOffsetTime.java891 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/
DChronoLocalDateTimeImpl.java313 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/
DTestLocalDateTime.java266 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()
DTestOffsetDateTime.java237 OffsetDateTime test = base.plusHours(0); in test_plusHours_zero()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1476 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()
DTCKDuration.java1214 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()
DTCKLocalDateTime.java1765 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);
DTCKZonedDateTime.java1102 …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);
DTCKOffsetTime.java916 OffsetTime test = base.plusHours(13);
923 OffsetTime test = base.plusHours(0);
DTCKOffsetDateTime.java998 OffsetDateTime test = base.plusHours(13);
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java193 public java.time.Duration plusHours(long hoursToAdd) { in plusHours() method in Duration
DOffsetDateTime.java297 public java.time.OffsetDateTime plusHours(long hours) { in plusHours() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java942 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()