/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 68 import static java.time.temporal.ChronoUnit.MILLIS; 116 {MILLIS, false, true, false}, in data_chronoUnit() 147 … {MILLIS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 3, 1000*1000 + 400)}, in data_unitAndTemporal() 162 {MILLIS, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
|
D | TCKChronoField.java | 91 import static java.time.temporal.ChronoUnit.MILLIS; 135 {MILLI_OF_DAY, MILLIS, DAYS}, in data_fieldUnit() 136 {MILLI_OF_SECOND, MILLIS, SECONDS}, in data_fieldUnit()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetDateTimeTest.java | 52 ODT.plus(1, ChronoUnit.MILLIS)); in test_plus() 68 ODT.minus(1, ChronoUnit.MILLIS)); in test_minus_utc_offset() 88 odt.minus(1, ChronoUnit.MILLIS)); in test_minus_non_utc_offset()
|
D | OffsetTimeTest.java | 54 NOON_UTC.plus(1, ChronoUnit.MILLIS)); in test_plus() 66 assertPlusIsNoop(24 * 60 * 60 * 1_000, ChronoUnit.MILLIS); in test_plus_noop()
|
D | InstantTest.java | 38 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MILLIS)); in test_isSupported_TemporalUnit()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 68 import static java.time.temporal.ChronoUnit.MILLIS; 111 {MILLIS}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 76 import static java.time.temporal.ChronoUnit.MILLIS; 208 MILLI_OF_SECOND("MilliOfSecond", MILLIS, SECONDS, ValueRange.of(0, 999)), 227 MILLI_OF_DAY("MilliOfDay", MILLIS, DAYS, ValueRange.of(0, 86400L * 1000L - 1)),
|
D | ChronoUnit.java | 93 MILLIS("Millis", Duration.ofNanos(1000_000)), enumConstant
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnit8Test.java | 69 assertSame(ChronoUnit.MILLIS, MILLISECONDS.toChronoUnit()); in testToChronoUnit() 86 assertSame(MILLISECONDS, TimeUnit.of(ChronoUnit.MILLIS)); in testTimeUnitOf() 117 assertEquals(n, MILLISECONDS.convert(Duration.of(n, ChronoUnit.MILLIS))); in testConvertDuration_roundtripDurationOf()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 460 case MILLISECONDS: return ChronoUnit.MILLIS; in toChronoUnit() 483 case MILLIS: return TimeUnit.MILLISECONDS; in of()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 66 import static java.time.temporal.ChronoUnit.MILLIS; 341 {0, MILLIS, 0, 0}, in provider_factory_of_longTemporalUnit() 349 {1, MILLIS, 0, 1000000}, in provider_factory_of_longTemporalUnit() 357 {3, MILLIS, 0, 3000000}, in provider_factory_of_longTemporalUnit() 365 {-1, MILLIS, -1, 999000000}, in provider_factory_of_longTemporalUnit() 373 {-3, MILLIS, -1, 997000000}, in provider_factory_of_longTemporalUnit() 383 … {Long.MAX_VALUE, MILLIS, Long.MAX_VALUE / 1000, (int) ((Long.MAX_VALUE % 1000) * 1000000)}, in provider_factory_of_longTemporalUnit() 384 …{Long.MIN_VALUE, MILLIS, Long.MIN_VALUE / 1000 - 1, (int) ((Long.MIN_VALUE % 1000 + 1000) * 100000… in provider_factory_of_longTemporalUnit() 1146 t = t.plus(1, MILLIS); in plus_longTemporalUnit_millis() 1765 t = t.minus(1, MILLIS); in minus_longTemporalUnit_millis() [all …]
|
D | TCKLocalTime.java | 82 import static java.time.temporal.ChronoUnit.MILLIS; 632 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MILLIS), true); in test_isSupported_TemporalUnit() 1380 {LocalTime.of(1, 2, 3, 123_456_789), MILLIS, LocalTime.of(1, 2, 3, 1230_00_000)}, in data_truncatedToValid() 2299 {time(0, 0, 0, 0), time(0, 0, 0, 0), MILLIS, 0}, 2307 {time(0, 0, 0, 0), time(2, 0, 0, 0), MILLIS, 2 * 3600 * 1_000L}, 2315 {time(0, 0, 0, 0), time(14, 0, 0, 0), MILLIS, 14 * 3600 * 1_000L}, 2323 … {time(0, 0, 0, 0), time(2, 30, 40, 1500), MILLIS, (2 * 3600 + 30 * 60 + 40) * 1_000L},
|
D | TCKOffsetTime.java | 83 import static java.time.temporal.ChronoUnit.MILLIS; 554 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MILLIS), true); 1075 …OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(2, 1, 1, 0, OFFSET_PONE), MILLIS, 3600*1000}, 1083 …OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(3, 1, 1, 0, OFFSET_PTWO), MILLIS, 3600*1000},
|
D | TCKOffsetDateTime.java | 98 import static java.time.temporal.ChronoUnit.MILLIS; 564 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MILLIS), true); 1138 …1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MILLIS, 3600*1000}, 1146 …1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), MILLIS, 3600*1000},
|
D | TCKLocalDateTime.java | 97 import static java.time.temporal.ChronoUnit.MILLIS; 956 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MILLIS), true); 2801 {dtEpoch(0, 0, 0, 0), dtEpoch(0, 0, 0, 0), MILLIS, 0}, 2809 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 0, 0, 0), MILLIS, 2 * 3600 * 1_000L}, 2817 {dtEpoch(0, 0, 0, 0), dtEpoch(14, 0, 0, 0), MILLIS, 14 * 3600 * 1_000L}, 2825 … {dtEpoch(0, 0, 0, 0), dtEpoch(2, 30, 40, 1500), MILLIS, (2 * 3600 + 30 * 60 + 40) * 1_000L},
|
D | TCKInstant.java | 69 import static java.time.temporal.ChronoUnit.MILLIS; 633 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), MILLIS, Instant.ofEpochSecond(86400 + …
|
D | TCKPeriod.java | 1166 {ChronoUnit.MILLIS}, in data_badTemporalUnit()
|
D | TCKYear.java | 396 assertEquals(TEST_2008.isSupported(ChronoUnit.MILLIS), false); in test_isSupported_TemporalUnit()
|
D | TCKYearMonth.java | 441 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MILLIS), false); in test_isSupported_TemporalUnit()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 305 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 376 case MILLIS: amount = Math.multiplyExact(amount, MILLIS_PER_DAY); break; in until()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 848 case MILLIS: return plusMillis(amountToAdd); in plus() 1142 case MILLIS: return Math.subtractExact(end.toEpochMilli(), toEpochMilli()); in until()
|
D | LocalTime.java | 1066 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus() 1408 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | LocalDateTime.java | 1176 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 1693 case MILLIS: in until()
|
D | OffsetTime.java | 1179 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | Duration.java | 707 case MILLIS: return plusMillis(amountToAdd); in plus()
|