Searched refs:NANOS_PER_SECOND (Results 1 – 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 64 import static java.time.LocalTime.NANOS_PER_SECOND; 141 private static final BigInteger BI_NANOS_PER_SECOND = BigInteger.valueOf(NANOS_PER_SECOND); 239 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds() 240 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds() 273 long secs = nanos / NANOS_PER_SECOND; in ofNanos() 274 int nos = (int) (nanos % NANOS_PER_SECOND); in ofNanos() 276 nos += NANOS_PER_SECOND; in ofNanos() 810 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus() 811 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus() 1180 long totalNanos = Math.multiplyExact(seconds, NANOS_PER_SECOND); in toNanos() [all …]
|
D | Instant.java | 64 import static java.time.LocalTime.NANOS_PER_SECOND; 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() 754 long nod = (seconds % LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + nanos; in truncatedTo() 920 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus() 921 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus() 1158 long totalNanos = Math.multiplyExact(secsDiff, NANOS_PER_SECOND); in nanosUntil()
|
D | LocalTime.java | 189 static final long NANOS_PER_SECOND = 1000_000_000L; field in LocalTime 193 static final long NANOS_PER_MINUTE = NANOS_PER_SECOND * SECONDS_PER_MINUTE; 274 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + now.getNano()); in now() 375 int seconds = (int) (nanoOfDay / NANOS_PER_SECOND); in ofNanoOfDay() 376 nanoOfDay -= seconds * NANOS_PER_SECOND; in ofNanoOfDay() 1148 int newSecond = (int) ((newNofd / NANOS_PER_SECOND) % SECONDS_PER_MINUTE); in plusNanos() 1149 int newNano = (int) (newNofd % NANOS_PER_SECOND); in plusNanos() 1386 case SECONDS: return nanosUntil / NANOS_PER_SECOND; in until() 1460 total += second * NANOS_PER_SECOND; in toNanoOfDay()
|
D | OffsetTime.java | 66 import static java.time.LocalTime.NANOS_PER_SECOND; 256 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant() 1179 case SECONDS: return nanosUntil / NANOS_PER_SECOND; in until() 1225 long offsetNanos = offset.getTotalSeconds() * NANOS_PER_SECOND; in toEpochNano()
|
D | Clock.java | 65 import static java.time.LocalTime.NANOS_PER_SECOND; 222 return new TickClock(system(zone), NANOS_PER_SECOND); in tickSeconds()
|
D | LocalDateTime.java | 71 import static java.time.LocalTime.NANOS_PER_SECOND; 417 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + nanoOfSecond); in ofEpochSecond() 1557 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow() 1706 timePart = timePart / NANOS_PER_SECOND; in until()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalTime.java | 76 static final long NANOS_PER_SECOND = 1_000_000_000L; field in TestLocalTime 77 static final long NANOS_PER_MINUTE = 60 * NANOS_PER_SECOND;
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 197 private static final long NANOS_PER_SECOND = 1000_000_000L; field in FileTime 261 secs = Math.floorDiv(value, NANOS_PER_SECOND); in toInstant() 262 nanos = (int)Math.floorMod(value, NANOS_PER_SECOND); in toInstant()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 142 static final long NANOS_PER_SECOND = 1000_000_000L; field in ChronoLocalDateTimeImpl 146 static final long NANOS_PER_MINUTE = NANOS_PER_SECOND * SECONDS_PER_MINUTE; 352 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
|