Home
last modified time | relevance | path

Searched refs:MILLIS (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java68 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()
DTCKChronoField.java91 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/
DTCKChronoUnitSerialization.java68 import static java.time.temporal.ChronoUnit.MILLIS;
111 {MILLIS}, in data_chronoUnit()
/libcore/luni/src/test/java/libcore/java/time/
DOffsetTimeTest.java54 NOON_UTC.plus(1, ChronoUnit.MILLIS)); in test_plus()
66 assertPlusIsNoop(24 * 60 * 60 * 1_000, ChronoUnit.MILLIS); in test_plus_noop()
DOffsetDateTimeTest.java52 ODT.plus(1, ChronoUnit.MILLIS)); in test_plus()
DInstantTest.java38 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MILLIS)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java76 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)),
DChronoUnit.java93 MILLIS("Millis", Duration.ofNanos(1000_000)), enumConstant
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java66 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 …]
DTCKLocalTime.java82 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},
DTCKOffsetTime.java83 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},
DTCKOffsetDateTime.java98 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},
DTCKLocalDateTime.java97 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},
DTCKInstant.java69 import static java.time.temporal.ChronoUnit.MILLIS;
633 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), MILLIS, Instant.ofEpochSecond(86400 + …
DTCKPeriod.java1166 {ChronoUnit.MILLIS}, in data_badTemporalUnit()
DTCKYear.java376 assertEquals(TEST_2008.isSupported(ChronoUnit.MILLIS), false); in test_isSupported_TemporalUnit()
DTCKYearMonth.java441 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MILLIS), false); in test_isSupported_TemporalUnit()
DTCKLocalDate.java650 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MILLIS), false);
DTCKZonedDateTime.java905 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.MILLIS), true);
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java310 …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/
DInstant.java849 case MILLIS: return plusMillis(amountToAdd); in plus()
1144 case MILLIS: return Math.subtractExact(end.toEpochMilli(), toEpochMilli()); in until()
DLocalTime.java1043 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus()
1385 case MILLIS: return nanosUntil / 1000_000; in until()
DLocalDateTime.java1182 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus()
1700 case MILLIS: in until()
DOffsetTime.java1178 case MILLIS: return nanosUntil / 1000_000; in until()
DDuration.java704 case MILLIS: return plusMillis(amountToAdd); in plus()