예제 #1
0
 public static Duration ofSeconds(long seconds, long nanoAdjustment) {
   long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND));
   int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND);
   return create(secs, nos);
 }