/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 71 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 413 updateCheckConflict(MICRO_OF_DAY, MICRO_OF_SECOND, cod % 1_000_000L); in resolveTimeFields() 447 if (fieldValues.containsKey(MICRO_OF_SECOND)) { in resolveTimeFields() 448 long cos = fieldValues.remove(MICRO_OF_SECOND); in resolveTimeFields() 450 MICRO_OF_SECOND.checkValidValue(cos); in resolveTimeFields() 453 updateCheckConflict(MICRO_OF_SECOND, NANO_OF_SECOND, nos); in resolveTimeFields() 484 if (fieldValues.containsKey(MICRO_OF_SECOND)) { in resolveTimeLenient() 486 long cos = los * 1_000 + (fieldValues.get(MICRO_OF_SECOND) % 1_000); in resolveTimeLenient() 487 updateCheckConflict(MILLI_OF_SECOND, MICRO_OF_SECOND, cos); in resolveTimeLenient() 488 fieldValues.remove(MICRO_OF_SECOND); in resolveTimeLenient() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 73 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 134 {MICRO_OF_SECOND}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 81 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 249 {MICRO_OF_SECOND, 12, NANO_OF_SECOND, 12_000L, null, null}, in data_resolveOneToField() 434 {SECOND_OF_DAY, 3600 + 650, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 442 …{MILLI_OF_DAY, (3600 + 650) * 1000L + 2, MICRO_OF_SECOND, 2_004, LocalTime.of(1, 10, 50, 2_004_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() 464 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, MICRO_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime() 1175 assertEquals(acc.isSupported(MICRO_OF_SECOND), true); in test_parse_fromField_InstantSeconds() 1179 assertEquals(acc.getLong(MICRO_OF_SECOND), 0L); in test_parse_fromField_InstantSeconds() 1192 assertEquals(acc.isSupported(MICRO_OF_SECOND), true); in test_parse_fromField_InstantSeconds_NanoOfSecond() 1196 assertEquals(acc.getLong(MICRO_OF_SECOND), 123456L); in test_parse_fromField_InstantSeconds_NanoOfSecond() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 64 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 161 assertEquals(actual.isSupported(MICRO_OF_SECOND), true); in test_parse_instantZones_supported() 200 assertEquals(actual.isSupported(MICRO_OF_SECOND), true); in test_parse_instantNoZone_supported()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 69 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 453 …return field == INSTANT_SECONDS || field == NANO_OF_SECOND || field == MICRO_OF_SECOND || field ==… in isSupported() 556 case MICRO_OF_SECOND: return nanos / 1000; in get() 593 case MICRO_OF_SECOND: return nanos / 1000; in getLong() 707 case MICRO_OF_SECOND: { in with()
|
D | LocalTime.java | 659 case MICRO_OF_SECOND: return nano / 1000; in get0() 834 case MICRO_OF_SECOND: return withNano((int) newValue * 1000); in with()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 73 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 137 {MICRO_OF_SECOND, MICROS, SECONDS}, in data_fieldUnit() 183 {MICRO_OF_SECOND, false, true}, in data_fieldBased()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 98 assertEquals(false, date.isSupported(ChronoField.MICRO_OF_SECOND)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 110 ChronoField.MICRO_OF_SECOND, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKInstant.java | 63 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 145 MICRO_OF_SECOND, in validFields() 389 assertEquals(test.get(ChronoField.MICRO_OF_SECOND), 123456); 397 assertEquals(test.getLong(ChronoField.MICRO_OF_SECOND), 123456); 518 …{Instant.ofEpochSecond(10, 200), ChronoField.MICRO_OF_SECOND, 100, Instant.ofEpochSecond(10, 100*1… 519 … {Instant.ofEpochSecond(10, 200), ChronoField.MICRO_OF_SECOND, 0, Instant.ofEpochSecond(10), null}, 524 …{Instant.ofEpochSecond(10, 200), ChronoField.MICRO_OF_SECOND, 1000000, null, DateTimeException.cla…
|
D | TCKLocalTime.java | 68 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 170 MICRO_OF_SECOND, in validFields() 566 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MICRO_OF_SECOND), true); in test_isSupported_TemporalField() 831 LocalTime test = TEST_12_30_40_987654321.with(MICRO_OF_SECOND, i); in test_with_longTemporalField_microOfSecond() 1004 {MICRO_OF_SECOND, time(0, 0, 0, 0), MICRO_OF_SECOND.range().getMinimum() - 1}, in data_withTemporalField_outOfRange() 1005 {MICRO_OF_SECOND, time(0, 0, 0, 0), MICRO_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
|
D | TCKDayOfWeek.java | 170 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 162 assertEquals(Month.AUGUST.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 68 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 163 MICRO_OF_SECOND, in validFields() 524 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MICRO_OF_SECOND), true);
|
D | TCKOffsetDateTime.java | 79 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 182 MICRO_OF_SECOND, in validFields() 541 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MICRO_OF_SECOND), true);
|
D | TCKMonthDay.java | 384 assertEquals(TEST_07_15.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 79 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 184 MICRO_OF_SECOND, in validFields() 867 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MICRO_OF_SECOND), true);
|
D | TCKLocalDateTime.java | 77 import static java.time.temporal.ChronoField.MICRO_OF_SECOND; 187 MICRO_OF_SECOND, in validFields() 924 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MICRO_OF_SECOND), true);
|
D | TCKYear.java | 338 assertEquals(TEST_2008.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 403 assertEquals(TEST_2008_06.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 612 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MICRO_OF_SECOND), false);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 158 MICRO_OF_SECOND("MicroOfSecond", MICROS, SECONDS, ValueRange.of(0, 999_999)), enumConstant
|