Searched refs:secondsToAdd (Results 1 – 2 of 2) sorted by relevance
872 public Instant plusSeconds(long secondsToAdd) { in plusSeconds() argument873 return plus(secondsToAdd, 0); in plusSeconds()915 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument916 if ((secondsToAdd | nanosToAdd) == 0) { in plus()919 long epochSec = Math.addExact(seconds, secondsToAdd); in plus()
765 public Duration plusSeconds(long secondsToAdd) { in plusSeconds() argument766 return plus(secondsToAdd, 0); in plusSeconds()805 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument806 if ((secondsToAdd | nanosToAdd) == 0) { in plus()809 long epochSec = Math.addExact(seconds, secondsToAdd); in plus()