/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 65 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));
|
D | ChronoField.java | 138 NANO_OF_DAY("NanoOfDay", NANOS, DAYS, ValueRange.of(0, 86400L * 1000_000_000L - 1)), enumConstant
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 76 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/ |
D | TCKChronoFieldSerialization.java | 79 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/ |
D | TCKChronoField.java | 79 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/ |
D | LocalTime.java | 67 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()
|
D | OffsetTime.java | 68 import static java.time.temporal.ChronoField.NANO_OF_DAY; 1116 .with(NANO_OF_DAY, time.toNanoOfDay()) in adjustInto()
|
D | OffsetDateTime.java | 66 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/ |
D | ChronoLocalDateTime.java | 65 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/ |
D | TCKIsoChronology.java | 190 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/ |
D | TCKDateTimeParseResolver.java | 87 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/chrono/ |
D | JapaneseChronologyTest.java | 104 assertEquals(false, date.isSupported(ChronoField.NANO_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 115 ChronoField.NANO_OF_DAY, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 73 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()
|
D | TCKDayOfWeek.java | 169 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 161 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 73 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);
|
D | TCKOffsetDateTime.java | 85 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);
|
D | TCKMonthDay.java | 383 assertEquals(TEST_07_15.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 85 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);
|
D | TCKLocalDateTime.java | 83 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);
|
D | TCKYear.java | 337 assertEquals(TEST_2008.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKInstant.java | 530 … {Instant.ofEpochSecond(10, 200), ChronoField.NANO_OF_DAY, 1, null, DateTimeException.class},
|
D | TCKYearMonth.java | 402 assertEquals(TEST_2008_06.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 611 assertEquals(TEST_2007_07_15.isSupported(ChronoField.NANO_OF_DAY), false);
|