Home
last modified time | relevance | path

Searched refs:MILLI_OF_SECOND (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/java/time/format/
DParsed.java73 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
421 updateCheckConflict(MILLI_OF_DAY, MILLI_OF_SECOND, lod % 1_000); in resolveTimeFields()
455 if (fieldValues.containsKey(MILLI_OF_SECOND)) { in resolveTimeFields()
456 long los = fieldValues.remove(MILLI_OF_SECOND); in resolveTimeFields()
458 MILLI_OF_SECOND.checkValidValue(los); in resolveTimeFields()
460 … updateCheckConflict(MILLI_OF_SECOND, NANO_OF_SECOND, los * 1_000_000L + (nos % 1_000_000L)); in resolveTimeFields()
482 if (fieldValues.containsKey(MILLI_OF_SECOND)) { in resolveTimeLenient()
483 long los = fieldValues.remove(MILLI_OF_SECOND); in resolveTimeLenient()
487 updateCheckConflict(MILLI_OF_SECOND, MICRO_OF_SECOND, cos); in resolveTimeLenient()
577 fieldValues.put(MILLI_OF_SECOND, nos / 1000000); in resolveFractional()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java75 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
132 {MILLI_OF_SECOND}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java83 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
250 {MILLI_OF_SECOND, 12, NANO_OF_SECOND, 12_000_000L, null, null}, in data_resolveOneToField()
433 {SECOND_OF_DAY, 3600 + 650, MILLI_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
448 … {MILLI_OF_DAY, (3600 + 650) * 1000L + 2, MILLI_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
456 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MILLI_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
463 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, MILLI_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
1176 assertEquals(acc.isSupported(MILLI_OF_SECOND), true); in test_parse_fromField_InstantSeconds()
1180 assertEquals(acc.getLong(MILLI_OF_SECOND), 0L); in test_parse_fromField_InstantSeconds()
1193 assertEquals(acc.isSupported(MILLI_OF_SECOND), true); in test_parse_fromField_InstantSeconds_NanoOfSecond()
1197 assertEquals(acc.getLong(MILLI_OF_SECOND), 123L); in test_parse_fromField_InstantSeconds_NanoOfSecond()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java65 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
162 assertEquals(actual.isSupported(MILLI_OF_SECOND), true); in test_parse_instantZones_supported()
201 assertEquals(actual.isSupported(MILLI_OF_SECOND), true); in test_parse_instantNoZone_supported()
/libcore/ojluni/src/main/java/java/time/
DInstant.java70 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
453 …INSTANT_SECONDS || field == NANO_OF_SECOND || field == MICRO_OF_SECOND || field == MILLI_OF_SECOND; in isSupported()
557 case MILLI_OF_SECOND: return nanos / 1000_000; in get()
594 case MILLI_OF_SECOND: return nanos / 1000_000; in getLong()
703 case MILLI_OF_SECOND: { in with()
DLocalTime.java661 case MILLI_OF_SECOND: return nano / 1000_000; in get0()
836 case MILLI_OF_SECOND: return withNano((int) newValue * 1000_000); in with()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java75 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
136 {MILLI_OF_SECOND, MILLIS, SECONDS}, in data_fieldUnit()
181 {MILLI_OF_SECOND, false, true}, in data_fieldBased()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java112 ChronoField.MILLI_OF_SECOND, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java64 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
146 MILLI_OF_SECOND, in validFields()
390 assertEquals(test.get(ChronoField.MILLI_OF_SECOND), 123);
398 assertEquals(test.getLong(ChronoField.MILLI_OF_SECOND), 123);
520 …{Instant.ofEpochSecond(10, 200), ChronoField.MILLI_OF_SECOND, 100, Instant.ofEpochSecond(10, 100*1…
521 … {Instant.ofEpochSecond(10, 200), ChronoField.MILLI_OF_SECOND, 0, Instant.ofEpochSecond(10), null},
525 …{Instant.ofEpochSecond(10, 200), ChronoField.MILLI_OF_SECOND, 1000, null, DateTimeException.class},
DTCKLocalTime.java70 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
172 MILLI_OF_SECOND, in validFields()
568 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MILLI_OF_SECOND), true); in test_isSupported_TemporalField()
856 LocalTime test = TEST_12_30_40_987654321.with(MILLI_OF_SECOND, i); in test_with_longTemporalField_milliOfSecond()
1010 {MILLI_OF_SECOND, time(0, 0, 0, 0), MILLI_OF_SECOND.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1011 {MILLI_OF_SECOND, time(0, 0, 0, 0), MILLI_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java172 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField()
DTCKMonth.java164 assertEquals(Month.AUGUST.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java70 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
165 MILLI_OF_SECOND, in validFields()
526 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MILLI_OF_SECOND), true);
DTCKOffsetDateTime.java81 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
184 MILLI_OF_SECOND, in validFields()
543 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MILLI_OF_SECOND), true);
DTCKMonthDay.java386 assertEquals(TEST_07_15.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java81 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
186 MILLI_OF_SECOND, in validFields()
869 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MILLI_OF_SECOND), true);
DTCKLocalDateTime.java79 import static java.time.temporal.ChronoField.MILLI_OF_SECOND;
189 MILLI_OF_SECOND, in validFields()
926 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MILLI_OF_SECOND), true);
DTCKYear.java340 assertEquals(TEST_2008.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField()
DTCKYearMonth.java405 assertEquals(TEST_2008_06.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField()
DTCKLocalDate.java614 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MILLI_OF_SECOND), false);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java103 assertEquals(false, date.isSupported(ChronoField.MILLI_OF_SECOND)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java197 MILLI_OF_SECOND("MilliOfSecond", MILLIS, SECONDS, ValueRange.of(0, 999)), enumConstant
/libcore/ojluni/src/main/java/java/util/
DFormatter.java4202 int i = t.get(ChronoField.MILLI_OF_SECOND) * 1000000;
4208 int i = t.get(ChronoField.MILLI_OF_SECOND);
4215 t.getLong(ChronoField.MILLI_OF_SECOND);
DGregorianCalendar.java3462 zdt.get(ChronoField.MILLI_OF_SECOND))); in from()