/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 340 return create(secs, mos * 1000_000); in ofEpochMilli() 557 case MILLI_OF_SECOND: return nanos / 1000_000; in get() 594 case MILLI_OF_SECOND: return nanos / 1000_000; in getLong() 704 int nval = (int) newValue * 1000_000; in with() 848 case MICROS: return plus(amountToAdd / 1000_000, (amountToAdd % 1000_000) * 1000); in plus() 887 return plus(millisToAdd / 1000, (millisToAdd % 1000) * 1000_000); in plusMillis() 1228 long adjustment = nanos / 1000_000 - 1000; in toEpochMilli() 1232 return Math.addExact(millis, nanos / 1000_000); in toEpochMilli()
|
D | LocalTime.java | 661 case MILLI_OF_SECOND: return nano / 1000_000; in get0() 662 case MILLI_OF_DAY: return (int) (toNanoOfDay() / 1000_000); in get0() 836 case MILLI_OF_SECOND: return withNano((int) newValue * 1000_000); in with() 837 case MILLI_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000_000); in with() 1043 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus() 1385 case MILLIS: return nanosUntil / 1000_000; in until() 1584 if (nanoValue % 1000_000 == 0) { in toString() 1585 buf.append(Integer.toString((nanoValue / 1000_000) + 1000).substring(1)); in toString() 1587 buf.append(Integer.toString((nanoValue / 1000) + 1000_000).substring(1)); in toString()
|
D | Clock.java | 286 if (tickNanos % 1000_000 == 0) { in tick() 622 if ((tickNanos % 1000_000) == 0) { in instant()
|
D | Duration.java | 260 return create(secs, mos * 1000_000); in ofMillis() 779 return plus(millisToAdd / 1000, (millisToAdd % 1000) * 1000_000); in plusMillis() 1166 millis = Math.addExact(millis, nanos / 1000_000); in toMillis()
|
D | OffsetTime.java | 1178 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | LocalDateTime.java | 1182 …return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Tick.java | 88 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMil… in test_tick_ClockDuration_250millis() 96 …st = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(250_000)); in test_tick_ClockDuration_250micros() 97 assertEquals(test.instant(), ZDT.withNano((i / 250) * 250_000).toInstant()); in test_tick_ClockDuration_250micros()
|
D | TCKLocalTime.java | 832 assertEquals(test.get(NANO_OF_SECOND), i * 1_000); in test_with_longTemporalField_microOfSecond() local
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 93 MILLIS("Millis", Duration.ofNanos(1000_000)),
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetTimeTest.java | 66 assertPlusIsNoop(24 * 60 * 60 * 1_000, ChronoUnit.MILLIS); in test_plus_noop()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 420 updateCheckConflict(MILLI_OF_DAY, SECOND_OF_DAY, lod / 1_000); in resolveTimeFields() 421 updateCheckConflict(MILLI_OF_DAY, MILLI_OF_SECOND, lod % 1_000); in resolveTimeFields() 486 long cos = los * 1_000 + (fieldValues.get(MICRO_OF_SECOND) % 1_000); in resolveTimeLenient()
|
D | DateTimeFormatterBuilder.java | 3222 if (ldt.getYear() == -10_000) { in format() 3285 int year = (int) yearParsed % 10_000; in parse()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 183 return r + nanos / 1000_000; in toMillis() 198 private static final int NANOS_PER_MILLI = 1000_000;
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | ReferenceQueue.java | 195 timeout -= (end - start) / 1000_000; in remove()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 302 {MICRO_OF_DAY, (3600 + 650) * 1_000_000L + 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveOneToTime() 434 {SECOND_OF_DAY, 3600 + 650, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 453 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 454 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 455 …{MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 456 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MILLI_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 457 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | HttpCookieTest.java | 419 String pastExpiryDate = dateFormat.format(new Date(System.currentTimeMillis() - 100_000)); in test_HasExpiredBug25682357_2() 425 String futureExpiryDate = dateFormat.format(new Date(System.currentTimeMillis() + 100_000)); in test_HasExpiredBug25682357_2()
|