Home
last modified time | relevance | path

Searched refs:secondsToAdd (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DInstant.java871 public Instant plusSeconds(long secondsToAdd) { in plusSeconds() argument
872 return plus(secondsToAdd, 0); in plusSeconds()
914 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument
915 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
918 long epochSec = Math.addExact(seconds, secondsToAdd); in plus()
DDuration.java768 public Duration plusSeconds(long secondsToAdd) { in plusSeconds() argument
769 return plus(secondsToAdd, 0); in plusSeconds()
808 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument
809 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
812 long epochSec = Math.addExact(seconds, secondsToAdd); in plus()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java201 public java.time.Duration plusSeconds(long secondsToAdd) { in plusSeconds() argument
213 private java.time.Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument