Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DDuration.java240 public static Duration ofSeconds(long seconds, long nanoAdjustment) { in ofSeconds() argument
241 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds()
242 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds()
494 private static Duration create(long seconds, int nanoAdjustment) { in create() argument
495 if ((seconds | nanoAdjustment) == 0) { in create()
498 return new Duration(seconds, nanoAdjustment); in create()
814 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus() local
815 return ofSeconds(epochSec, nanoAdjustment); in plus()
DInstant.java321 public static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond() argument
322 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
323 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond()
922 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus() local
923 return ofEpochSecond(epochSec, nanoAdjustment); in plus()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java93 public static java.time.Duration ofSeconds(long seconds, long nanoAdjustment) { in ofSeconds() argument
145 private static java.time.Duration create(long seconds, int nanoAdjustment) { in create() argument