Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalQueries.java65 import static java.time.temporal.ChronoField.NANO_OF_DAY;
392 if (temporal.isSupported(NANO_OF_DAY)) {
393 return LocalTime.ofNanoOfDay(temporal.getLong(NANO_OF_DAY));
DChronoField.java138 NANO_OF_DAY("NanoOfDay", NANOS, DAYS, ValueRange.of(0, 86400L * 1000_000_000L - 1)), enumConstant
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java76 import static java.time.temporal.ChronoField.NANO_OF_DAY;
397 if (fieldValues.containsKey(NANO_OF_DAY)) { in resolveTimeFields()
398 long nod = fieldValues.remove(NANO_OF_DAY); in resolveTimeFields()
400 NANO_OF_DAY.checkValidValue(nod); in resolveTimeFields()
402 updateCheckConflict(NANO_OF_DAY, HOUR_OF_DAY, nod / 3600_000_000_000L); in resolveTimeFields()
403 updateCheckConflict(NANO_OF_DAY, MINUTE_OF_HOUR, (nod / 60_000_000_000L) % 60); in resolveTimeFields()
404 updateCheckConflict(NANO_OF_DAY, SECOND_OF_MINUTE, (nod / 1_000_000_000L) % 60); in resolveTimeFields()
405 updateCheckConflict(NANO_OF_DAY, NANO_OF_SECOND, nod % 1_000_000_000L); in resolveTimeFields()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java79 import static java.time.temporal.ChronoField.NANO_OF_DAY;
135 {NANO_OF_DAY}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java79 import static java.time.temporal.ChronoField.NANO_OF_DAY;
140 {NANO_OF_DAY, NANOS, DAYS}, in data_fieldUnit()
184 {NANO_OF_DAY, false, true}, in data_fieldBased()
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java67 import static java.time.temporal.ChronoField.NANO_OF_DAY;
370 NANO_OF_DAY.checkValidValue(nanoOfDay); in ofNanoOfDay()
644 if (field == NANO_OF_DAY) { in getLong()
658 …case NANO_OF_DAY: throw new UnsupportedTemporalTypeException("Invalid field 'NanoOfDay' for get() … in get0()
833 case NANO_OF_DAY: return LocalTime.ofNanoOfDay(newValue); in with()
1327 return temporal.with(NANO_OF_DAY, toNanoOfDay()); in adjustInto()
DOffsetTime.java68 import static java.time.temporal.ChronoField.NANO_OF_DAY;
1116 .with(NANO_OF_DAY, time.toNanoOfDay()) in adjustInto()
DOffsetDateTime.java66 import static java.time.temporal.ChronoField.NANO_OF_DAY;
1591 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()) in adjustInto()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTime.java65 import static java.time.temporal.ChronoField.NANO_OF_DAY;
380 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()); in adjustInto()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java190 if (field == ChronoField.EPOCH_DAY || field == ChronoField.NANO_OF_DAY) { in test_localDateTime_TemporalAccessor()
201 if (field == ChronoField.NANO_OF_DAY) { in test_localDateTime_TemporalAccessor()
232 if (field == ChronoField.EPOCH_DAY || field == ChronoField.NANO_OF_DAY || in test_zonedDateTime_TemporalAccessor()
250 if (field == ChronoField.NANO_OF_DAY) { in test_zonedDateTime_TemporalAccessor()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java87 import static java.time.temporal.ChronoField.NANO_OF_DAY;
303 {NANO_OF_DAY, (3600 + 650) * 1_000_000_000L + 2, LocalTime.of(1, 10, 50, 2)}, in data_resolveOneToTime()
460 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
461 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
462 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2)}, 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()
464 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, MICRO_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
465 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, NANO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java115 ChronoField.NANO_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java107 assertEquals(false, date.isSupported(ChronoField.NANO_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java73 import static java.time.temporal.ChronoField.NANO_OF_DAY;
169 NANO_OF_DAY, in validFields()
565 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.NANO_OF_DAY), true); in test_isSupported_TemporalField()
820 LocalTime test = TEST_12_30_40_987654321.with(NANO_OF_DAY, i); in test_with_longTemporalField_nanoOfDay()
1001 {NANO_OF_DAY, time(0, 0, 0, 0), NANO_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1002 {NANO_OF_DAY, time(0, 0, 0, 0), NANO_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java169 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
DTCKMonth.java161 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java73 import static java.time.temporal.ChronoField.NANO_OF_DAY;
162 NANO_OF_DAY, in validFields()
523 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.NANO_OF_DAY), true);
DTCKOffsetDateTime.java85 import static java.time.temporal.ChronoField.NANO_OF_DAY;
181 NANO_OF_DAY, in validFields()
540 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.NANO_OF_DAY), true);
DTCKMonthDay.java383 assertEquals(TEST_07_15.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java85 import static java.time.temporal.ChronoField.NANO_OF_DAY;
183 NANO_OF_DAY, in validFields()
866 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.NANO_OF_DAY), true);
DTCKLocalDateTime.java83 import static java.time.temporal.ChronoField.NANO_OF_DAY;
186 NANO_OF_DAY, in validFields()
923 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.NANO_OF_DAY), true);
DTCKYear.java337 assertEquals(TEST_2008.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
DTCKYearMonth.java402 assertEquals(TEST_2008_06.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
DTCKInstant.java530 … {Instant.ofEpochSecond(10, 200), ChronoField.NANO_OF_DAY, 1, null, DateTimeException.class},
DTCKLocalDate.java611 assertEquals(TEST_2007_07_15.isSupported(ChronoField.NANO_OF_DAY), false);

12