Searched refs:NANOS_PER_SECOND (Results 1 – 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 66 import static java.time.LocalTime.NANOS_PER_SECOND; 144 private static final BigInteger BI_NANOS_PER_SECOND = BigInteger.valueOf(NANOS_PER_SECOND); 242 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds() 243 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds() 276 long secs = nanos / NANOS_PER_SECOND; in ofNanos() 277 int nos = (int) (nanos % NANOS_PER_SECOND); in ofNanos() 279 nos += NANOS_PER_SECOND; in ofNanos() 813 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus() 814 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus() 1215 long totalNanos = Math.multiplyExact(seconds, NANOS_PER_SECOND); in toNanos() [all …]
|
D | Instant.java | 64 import static java.time.LocalTime.NANOS_PER_SECOND; 323 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond() 324 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond() 753 long nod = (seconds % LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + nanos; in truncatedTo() 919 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus() 920 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus() 1156 long totalNanos = Math.multiplyExact(secsDiff, NANOS_PER_SECOND); in nanosUntil()
|
D | LocalTime.java | 193 static final long NANOS_PER_SECOND = 1000_000_000L; field in LocalTime 197 static final long NANOS_PER_MINUTE = NANOS_PER_SECOND * SECONDS_PER_MINUTE; 361 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant() 399 int seconds = (int) (nanoOfDay / NANOS_PER_SECOND); in ofNanoOfDay() 400 nanoOfDay -= seconds * NANOS_PER_SECOND; in ofNanoOfDay() 1171 int newSecond = (int) ((newNofd / NANOS_PER_SECOND) % SECONDS_PER_MINUTE); in plusNanos() 1172 int newNano = (int) (newNofd % NANOS_PER_SECOND); in plusNanos() 1409 case SECONDS: return nanosUntil / NANOS_PER_SECOND; in until() 1483 total += second * NANOS_PER_SECOND; in toNanoOfDay()
|
D | OffsetTime.java | 66 import static java.time.LocalTime.NANOS_PER_SECOND; 257 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant() 1180 case SECONDS: return nanosUntil / NANOS_PER_SECOND; in until() 1226 long offsetNanos = offset.getTotalSeconds() * NANOS_PER_SECOND; in toEpochNano()
|
D | LocalDateTime.java | 71 import static java.time.LocalTime.NANOS_PER_SECOND; 418 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + nanoOfSecond); in ofEpochSecond() 1550 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow() 1699 timePart = timePart / NANOS_PER_SECOND; in until()
|
D | Clock.java | 69 import static java.time.LocalTime.NANOS_PER_SECOND; 255 return new TickClock(system(zone), NANOS_PER_SECOND); in tickSeconds()
|
/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 | 143 static final long NANOS_PER_SECOND = 1000_000_000L; field in ChronoLocalDateTimeImpl 147 static final long NANOS_PER_MINUTE = NANOS_PER_SECOND * SECONDS_PER_MINUTE; 347 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
|