/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 850 case SECONDS: return plusSeconds(amountToAdd); in plus() 851 … case MINUTES: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_MINUTE)); in plus() 852 case HOURS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_HOUR)); in plus() 853 … case HALF_DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY / 2)); in plus() 854 case DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY)); in plus() 872 public Instant plusSeconds(long secondsToAdd) { in plusSeconds() method in Instant 989 return plusSeconds(Long.MAX_VALUE).plusSeconds(1); in minusSeconds() 991 return plusSeconds(-secondsToSubtract); in minusSeconds()
|
D | Duration.java | 705 …case MICROS: return plusSeconds((amountToAdd / (1000_000L * 1000)) * 1000).plusNanos((amountToAdd … in plus() 707 case SECONDS: return plusSeconds(amountToAdd); in plus() 709 return plusSeconds(Math.multiplyExact(unit.getDuration().seconds, amountToAdd)); in plus() 712 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus() 767 public Duration plusSeconds(long secondsToAdd) { in plusSeconds() method in Duration 913 …return (secondsToSubtract == Long.MIN_VALUE ? plusSeconds(Long.MAX_VALUE).plusSeconds(1) : plusSec… in minusSeconds()
|
D | OffsetDateTime.java | 695 LocalDateTime adjusted = dateTime.plusSeconds(difference); in withOffsetSameInstant() 1311 public OffsetDateTime plusSeconds(long seconds) { in plusSeconds() method in OffsetDateTime 1312 return with(dateTime.plusSeconds(seconds), offset); in plusSeconds() 1501 …return (seconds == Long.MIN_VALUE ? plusSeconds(Long.MAX_VALUE).plusSeconds(1) : plusSeconds(-seco… in minusSeconds()
|
D | LocalTime.java | 862 case SECOND_OF_DAY: return plusSeconds(newValue - toSecondOfDay()); in with() 1067 case SECONDS: return plusSeconds(amountToAdd); in plus() 1133 public LocalTime plusSeconds(long secondstoAdd) { in plusSeconds() method in LocalTime 1269 return plusSeconds(-(secondsToSubtract % SECONDS_PER_DAY)); in minusSeconds()
|
D | LocalDateTime.java | 1183 case SECONDS: return plusSeconds(amountToAdd); in plus() 1320 public LocalDateTime plusSeconds(long seconds) { in plusSeconds() method in LocalDateTime
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestDuration.java | 97 assertSame(t.plusSeconds(0), t); in plusSeconds_zeroReturnsThis() 103 assertSame(t.plusSeconds(1), Duration.ZERO); in plusSeconds_zeroSingleton()
|
D | TestLocalDateTime.java | 308 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusSeconds(0); in test_plusSeconds_noChange() 314 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusSeconds(24 * 60 * 60); in test_plusSeconds_noChange_oneDay_same() 320 …LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(23, 59, 59)).plusSeconds(1); in test_plusSeconds_toMidnight() 326 …LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(11, 59, 59)).plusSeconds(1); in test_plusSeconds_toMidday()
|
D | TestOffsetDateTime.java | 251 OffsetDateTime test = base.plusSeconds(0); in test_plusSeconds_zero()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | BasicFileAttributeViewCreationTimeTest.java | 101 Instant plusHour = Instant.now().plusSeconds(60L * 60L); in test()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransitionRule.java | 615 return dateTime.plusSeconds(difference); in createDateTime() 619 return dateTime.plusSeconds(difference); in createDateTime()
|
D | ZoneOffsetTransition.java | 287 return transition.plusSeconds(getDurationSeconds()); in getDateTimeAfter()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 311 case SECONDS: return plusSeconds(amountToAdd); in plus() 333 ChronoLocalDateTimeImpl<D> plusSeconds(long seconds) { in plusSeconds() method in ChronoLocalDateTimeImpl
|
D | ChronoZonedDateTimeImpl.java | 149 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofBest()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 455 assertEquals(test.previousTransition(prev.getInstant().plusSeconds(1)), prev); in test_London_previousTransition_historic() 466 assertEquals(test.previousTransition(last.getInstant().plusSeconds(1)), last); in test_London_previousTransition_rulesBased() 481 assertEquals(test.previousTransition(b.getInstant().plusSeconds(1)), b); in test_London_previousTransition_rulesBased() 485 assertEquals(test.previousTransition(a.getInstant().plusSeconds(1)), a); in test_London_previousTransition_rulesBased() 1033 …stdOffsetTransition1 = OffsetDateTime.of(time_of_stdOffsetTransition1, stdOffset1).plusSeconds(1);; in test_of() 1038 …llOffsetTransition1 = OffsetDateTime.of(time_of_wallOffsetTransition1, wallOffset1).plusSeconds(1); in test_of() 1043 …llOffsetTransition2 = OffsetDateTime.of(time_of_wallOffsetTransition2, wallOffset2).plusSeconds(1); in test_of() 1048 …llOffsetTransition3 = OffsetDateTime.of(time_of_wallOffsetTransition3, wallOffset3).plusSeconds(1); in test_of()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 201 public java.time.Duration plusSeconds(long secondsToAdd) { in plusSeconds() method in Duration
|
D | OffsetDateTime.java | 305 public java.time.OffsetDateTime plusSeconds(long seconds) { in plusSeconds() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1644 t = t.plusSeconds(1); in test_plusSeconds_one() 1704 LocalTime t = base.plusSeconds(seconds); in test_plusSeconds_fromZero() 1713 LocalTime t = TEST_12_30_40_987654321.plusSeconds(0); in test_plusSeconds_noChange_equal() 1719 LocalTime t = TEST_12_30_40_987654321.plusSeconds(24 * 60 * 60); in test_plusSeconds_noChange_oneDay_equal() 1725 LocalTime t = LocalTime.of(23, 59, 59).plusSeconds(1); in test_plusSeconds_toMidnight_equal() 1731 LocalTime t = LocalTime.of(11, 59, 59).plusSeconds(1); in test_plusSeconds_toMidday_equal() 2357 LocalDateTime end = start.plusSeconds(2).atDate(LocalDate.of(2010, 6, 30)); 2434 t = t.plusSeconds(1); 2469 t = t.plusSeconds(1);
|
D | TCKInstant.java | 987 t = t.plusSeconds(amount); 995 t.plusSeconds(Long.MAX_VALUE); 1001 t.plusSeconds(Long.MIN_VALUE); 1834 OffsetDateTime end = start.plusSeconds(2).atOffset(ZoneOffset.ofHours(2));
|
D | TCKLocalDateTime.java | 363 Clock clock = Clock.fixed(MAX_INSTANT.plusSeconds(24 * 60 * 60), ZoneOffset.UTC); 807 assertEquals(test, base.plusSeconds(i)); 1878 t = t.plusSeconds(1); 1946 LocalDateTime t = base.plusSeconds(seconds); 1956 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusSeconds(24 * 60 * 60); 3013 LocalDateTime a = LocalDateTime.of(1970, 1, 1, 0, 0).plusSeconds(j);
|
D | TCKOffsetTime.java | 950 OffsetTime test = base.plusSeconds(1); 957 OffsetTime test = base.plusSeconds(0); 1118 OffsetDateTime offsetDateTime = offsetTime.plusSeconds(3).atDate(LocalDate.of(1980, 2, 10));
|
D | TCKOffsetDateTime.java | 1018 OffsetDateTime test = base.plusSeconds(1); 1194 ZonedDateTime zdt = odt.plusSeconds(3).toZonedDateTime(); 1287 … OffsetDateTime a = OffsetDateTime.of(1970, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC).plusSeconds(i);
|
D | TCKZonedDateTime.java | 1799 assertEquals(base.plusSeconds(amount * 3600), expected); 1806 ZonedDateTime test = base.plusSeconds(1); 1807 assertEquals(test, ZonedDateTime.of(ldt.plusSeconds(1), ZONE_0100)); 2154 ldt = ldt.plusSeconds(1);
|
D | TCKLocalDate.java | 320 Clock clock = Clock.fixed(MAX_INSTANT.plusSeconds(24 * 60 * 60), ZoneOffset.UTC);
|