Home
last modified time | relevance | path

Searched refs:MICROS (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java66 import static java.time.temporal.ChronoUnit.MICROS;
115 {MICROS, false, true, false}, in data_chronoUnit()
146 {MICROS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 3, 1000 + 400)}, in data_unitAndTemporal()
161 {MICROS, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
DTCKChronoField.java90 import static java.time.temporal.ChronoUnit.MICROS;
137 {MICRO_OF_SECOND, MICROS, SECONDS}, in data_fieldUnit()
138 {MICRO_OF_DAY, MICROS, DAYS}, in data_fieldUnit()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java66 import static java.time.temporal.ChronoUnit.MICROS;
110 {MICROS}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java75 import static java.time.temporal.ChronoUnit.MICROS;
158 MICRO_OF_SECOND("MicroOfSecond", MICROS, SECONDS, ValueRange.of(0, 999_999)),
177 MICRO_OF_DAY("MicroOfDay", MICROS, DAYS, ValueRange.of(0, 86400L * 1000_000L - 1)),
DChronoUnit.java88 MICROS("Micros", Duration.ofNanos(1000)), enumConstant
/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java37 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MICROS)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java65 import static java.time.temporal.ChronoUnit.MICROS;
338 {0, MICROS, 0, 0}, in provider_factory_of_longTemporalUnit()
346 {1, MICROS, 0, 1000}, in provider_factory_of_longTemporalUnit()
354 {3, MICROS, 0, 3000}, in provider_factory_of_longTemporalUnit()
362 {-1, MICROS, -1, 999999000}, in provider_factory_of_longTemporalUnit()
370 {-3, MICROS, -1, 999997000}, in provider_factory_of_longTemporalUnit()
379 … {Long.MAX_VALUE, MICROS, Long.MAX_VALUE / 1000000, (int) ((Long.MAX_VALUE % 1000000) * 1000)}, in provider_factory_of_longTemporalUnit()
380 …{Long.MIN_VALUE, MICROS, Long.MIN_VALUE / 1000000 - 1, (int) ((Long.MIN_VALUE % 1000000 + 1000000)… in provider_factory_of_longTemporalUnit()
1127 t = t.plus(1, MICROS); in plus_longTemporalUnit_micros()
1746 t = t.minus(1, MICROS); in minus_longTemporalUnit_micros()
[all …]
DTCKLocalTime.java81 import static java.time.temporal.ChronoUnit.MICROS;
603 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MICROS), true); in test_isSupported_TemporalUnit()
1351 {LocalTime.of(1, 2, 3, 123_456_789), MICROS, LocalTime.of(1, 2, 3, 123_456_000)}, in data_truncatedToValid()
2270 {time(0, 0, 0, 0), time(0, 0, 0, 0), MICROS, 0},
2278 {time(0, 0, 0, 0), time(2, 0, 0, 0), MICROS, 2 * 3600 * 1_000_000L},
2286 {time(0, 0, 0, 0), time(14, 0, 0, 0), MICROS, 14 * 3600 * 1_000_000L},
2294 … {time(0, 0, 0, 0), time(2, 30, 40, 1500), MICROS, (2 * 3600 + 30 * 60 + 40) * 1_000_000L + 1},
DTCKOffsetTime.java82 import static java.time.temporal.ChronoUnit.MICROS;
561 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MICROS), true);
1084 …Time.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(2, 1, 1, 0, OFFSET_PONE), MICROS, 3600*1000*1000L},
1092 …Time.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(3, 1, 1, 0, OFFSET_PTWO), MICROS, 3600*1000*1000L},
DTCKOffsetDateTime.java97 import static java.time.temporal.ChronoUnit.MICROS;
578 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MICROS), true);
1154 …0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MICROS, 3600*1000*1000L},
1162 …0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), MICROS, 3600*1000*1000L},
DTCKLocalDateTime.java95 import static java.time.temporal.ChronoUnit.MICROS;
961 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MICROS), true);
2806 {dtEpoch(0, 0, 0, 0), dtEpoch(0, 0, 0, 0), MICROS, 0},
2814 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 0, 0, 0), MICROS, 2 * 3600 * 1_000_000L},
2822 {dtEpoch(0, 0, 0, 0), dtEpoch(14, 0, 0, 0), MICROS, 14 * 3600 * 1_000_000L},
2830 …{dtEpoch(0, 0, 0, 0), dtEpoch(2, 30, 40, 1500), MICROS, (2 * 3600 + 30 * 60 + 40) * 1_000_000L + 1…
DTCKInstant.java68 import static java.time.temporal.ChronoUnit.MICROS;
632 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), MICROS, Instant.ofEpochSecond(86400 + …
DTCKPeriod.java1165 {ChronoUnit.MICROS}, in data_badTemporalUnit()
DTCKYear.java375 assertEquals(TEST_2008.isSupported(ChronoUnit.MICROS), false); in test_isSupported_TemporalUnit()
DTCKYearMonth.java440 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MICROS), false); in test_isSupported_TemporalUnit()
DTCKLocalDate.java649 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MICROS), false);
DTCKZonedDateTime.java904 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.MICROS), true);
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java309 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus()
380 case MICROS: amount = Math.multiplyExact(amount, MICROS_PER_DAY); break; in until()
/libcore/ojluni/src/main/java/java/time/
DInstant.java848 case MICROS: return plus(amountToAdd / 1000_000, (amountToAdd % 1000_000) * 1000); in plus()
1143 case MICROS: return nanosUntil(end) / 1000; in until()
DLocalTime.java1042 case MICROS: return plusNanos((amountToAdd % MICROS_PER_DAY) * 1000); in plus()
1384 case MICROS: return nanosUntil / 1000; in until()
DLocalDateTime.java1181 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus()
1696 case MICROS: in until()
DOffsetTime.java1177 case MICROS: return nanosUntil / 1000; in until()
DDuration.java703 …case MICROS: return plusSeconds((amountToAdd / (1000_000L * 1000)) * 1000).plusNanos((amountToAdd … in plus()