/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/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/luni/src/test/java/libcore/java/time/ |
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 | OffsetDateTimeTest.java | 52 ODT.plus(1, ChronoUnit.MILLIS)); in test_plus()
|
D | InstantTest.java | 38 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MILLIS)); in test_isSupported_TemporalUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 76 import static java.time.temporal.ChronoUnit.MILLIS; 197 MILLI_OF_SECOND("MilliOfSecond", MILLIS, SECONDS, ValueRange.of(0, 999)), 216 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/time/tck/java/time/ |
D | TCKDuration.java | 66 import static java.time.temporal.ChronoUnit.MILLIS; 339 {0, MILLIS, 0, 0}, in provider_factory_of_longTemporalUnit() 347 {1, MILLIS, 0, 1000000}, in provider_factory_of_longTemporalUnit() 355 {3, MILLIS, 0, 3000000}, in provider_factory_of_longTemporalUnit() 363 {-1, MILLIS, -1, 999000000}, in provider_factory_of_longTemporalUnit() 371 {-3, MILLIS, -1, 997000000}, in provider_factory_of_longTemporalUnit() 381 … {Long.MAX_VALUE, MILLIS, Long.MAX_VALUE / 1000, (int) ((Long.MAX_VALUE % 1000) * 1000000)}, in provider_factory_of_longTemporalUnit() 382 …{Long.MIN_VALUE, MILLIS, Long.MIN_VALUE / 1000 - 1, (int) ((Long.MIN_VALUE % 1000 + 1000) * 100000… in provider_factory_of_longTemporalUnit() 1119 t = t.plus(1, MILLIS); in plus_longTemporalUnit_millis() 1738 t = t.minus(1, MILLIS); in minus_longTemporalUnit_millis() [all …]
|
D | TCKLocalTime.java | 82 import static java.time.temporal.ChronoUnit.MILLIS; 604 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MILLIS), true); in test_isSupported_TemporalUnit() 1352 {LocalTime.of(1, 2, 3, 123_456_789), MILLIS, LocalTime.of(1, 2, 3, 1230_00_000)}, in data_truncatedToValid() 2271 {time(0, 0, 0, 0), time(0, 0, 0, 0), MILLIS, 0}, 2279 {time(0, 0, 0, 0), time(2, 0, 0, 0), MILLIS, 2 * 3600 * 1_000L}, 2287 {time(0, 0, 0, 0), time(14, 0, 0, 0), MILLIS, 14 * 3600 * 1_000L}, 2295 … {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; 562 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MILLIS), true); 1083 …OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(2, 1, 1, 0, OFFSET_PONE), MILLIS, 3600*1000}, 1091 …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; 579 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MILLIS), true); 1153 …1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MILLIS, 3600*1000}, 1161 …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; 962 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MILLIS), true); 2807 {dtEpoch(0, 0, 0, 0), dtEpoch(0, 0, 0, 0), MILLIS, 0}, 2815 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 0, 0, 0), MILLIS, 2 * 3600 * 1_000L}, 2823 {dtEpoch(0, 0, 0, 0), dtEpoch(14, 0, 0, 0), MILLIS, 14 * 3600 * 1_000L}, 2831 … {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 | 376 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()
|
D | TCKLocalDate.java | 650 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MILLIS), false);
|
D | TCKZonedDateTime.java | 905 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.MILLIS), true);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 310 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 381 case MILLIS: amount = Math.multiplyExact(amount, MILLIS_PER_DAY); break; in until()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 849 case MILLIS: return plusMillis(amountToAdd); in plus() 1144 case MILLIS: return Math.subtractExact(end.toEpochMilli(), toEpochMilli()); in until()
|
D | LocalTime.java | 1043 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus() 1385 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | LocalDateTime.java | 1182 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 1700 case MILLIS: in until()
|
D | OffsetTime.java | 1178 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | Duration.java | 704 case MILLIS: return plusMillis(amountToAdd); in plus()
|