/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 63 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 110 .appendValue(INSTANT_SECONDS).toFormatter(); 113 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter(); 116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter(); 157 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantZones_supported() 196 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantNoZone_supported()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 68 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 367 long instantSecs = temporal.getLong(INSTANT_SECONDS); in from() 453 …return field == INSTANT_SECONDS || field == NANO_OF_SECOND || field == MICRO_OF_SECOND || field ==… in isSupported() 558 case INSTANT_SECONDS: INSTANT_SECONDS.checkValidIntValue(seconds); in get() 595 case INSTANT_SECONDS: return seconds; in getLong() 712 case INSTANT_SECONDS: return (newValue != seconds ? create(newValue, nanos) : this); in with() 1089 return temporal.with(INSTANT_SECONDS, seconds).with(NANO_OF_SECOND, nanos); in adjustInto()
|
D | ZonedDateTime.java | 64 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 548 if (temporal.isSupported(INSTANT_SECONDS)) { in from() 549 long epochSecond = temporal.getLong(INSTANT_SECONDS); in from() 769 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 809 case INSTANT_SECONDS: in get() 846 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 1299 case INSTANT_SECONDS: in with()
|
D | OffsetDateTime.java | 65 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 553 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 593 case INSTANT_SECONDS: in get() 630 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 965 … case INSTANT_SECONDS: return ofInstant(Instant.ofEpochSecond(newValue, getNano()), offset); in with()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTime.java | 64 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 181 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 193 case INSTANT_SECONDS: in get() 207 case INSTANT_SECONDS: return toEpochSecond(); in getLong()
|
D | ChronoZonedDateTimeImpl.java | 288 case INSTANT_SECONDS: return plus(newValue - toEpochSecond(), SECONDS); in with()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 69 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 329 if (fieldValues.containsKey(INSTANT_SECONDS)) { in resolveInstantFields() 343 Instant instant = Instant.ofEpochSecond(fieldValues.remove(INSTANT_SECONDS)); in resolveInstantFields0() 346 … updateCheckConflict(INSTANT_SECONDS, SECOND_OF_DAY, (long) zdt.toLocalTime().toSecondOfDay()); in resolveInstantFields0() 571 (fieldValues.containsKey(INSTANT_SECONDS) || in resolveFractional() 590 long instant = date.atTime(time).atZone(zone).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant() 591 fieldValues.put(INSTANT_SECONDS, instant); in resolveInstant() 596 … long instant = date.atTime(time).atZone(offset).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant() 597 fieldValues.put(INSTANT_SECONDS, instant); in resolveInstant()
|
D | DateTimePrintContext.java | 65 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 148 if (temporal.isSupported(INSTANT_SECONDS)) { in adjust()
|
D | DateTimeFormatterBuilder.java | 72 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 3195 Long inSecs = context.getValue(INSTANT_SECONDS); in format() 3304 successPos = context.setParsedField(INSTANT_SECONDS, instantSecs, position, successPos); in parse() 3762 dt.isSupported(ChronoField.INSTANT_SECONDS) in format()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 108 ChronoField.INSTANT_SECONDS, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 79 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 1170 .appendValue(INSTANT_SECONDS).toFormatter(); in test_parse_fromField_InstantSeconds() 1173 assertEquals(acc.isSupported(INSTANT_SECONDS), true); in test_parse_fromField_InstantSeconds() 1177 assertEquals(acc.getLong(INSTANT_SECONDS), 86402L); in test_parse_fromField_InstantSeconds() 1187 … .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter(); in test_parse_fromField_InstantSeconds_NanoOfSecond() 1190 assertEquals(acc.isSupported(INSTANT_SECONDS), true); in test_parse_fromField_InstantSeconds_NanoOfSecond() 1194 assertEquals(acc.getLong(INSTANT_SECONDS), 86402L); in test_parse_fromField_InstantSeconds_NanoOfSecond()
|
D | TCKDateTimeFormatters.java | 66 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 1227 assertEquals(parsed.getLong(INSTANT_SECONDS), instantSecs); in test_parse_isoInstant() 1388 mock.fields.put(INSTANT_SECONDS, instantSecs); in buildAccessorInstant()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 102 assertEquals(false, date.isSupported(ChronoField.INSTANT_SECONDS)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKInstant.java | 62 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 147 INSTANT_SECONDS, in validFields() 399 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), 12345); 513 …{Instant.ofEpochSecond(10, 200), ChronoField.INSTANT_SECONDS, 100, Instant.ofEpochSecond(100, 200)… 514 …{Instant.ofEpochSecond(10, 200), ChronoField.INSTANT_SECONDS, 0, Instant.ofEpochSecond(0, 200), nu… 515 …{Instant.ofEpochSecond(10, 200), ChronoField.INSTANT_SECONDS, -100, Instant.ofEpochSecond(-100, 20…
|
D | TCKDayOfWeek.java | 196 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKOffsetDateTime.java | 77 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 209 INSTANT_SECONDS, in validFields() 567 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.INSTANT_SECONDS), true); 633 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), test.toEpochSecond());
|
D | TCKMonth.java | 188 assertEquals(Month.AUGUST.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 77 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 211 INSTANT_SECONDS, in validFields() 702 return field == INSTANT_SECONDS || field == NANO_OF_SECOND; 893 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.INSTANT_SECONDS), true); 960 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), test.toEpochSecond());
|
D | TCKMonthDay.java | 410 assertEquals(TEST_07_15.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKYear.java | 364 assertEquals(TEST_2008.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 550 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.INSTANT_SECONDS), false);
|
D | TCKYearMonth.java | 429 assertEquals(TEST_2008_06.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 576 …INSTANT_SECONDS("InstantSeconds", SECONDS, FOREVER, ValueRange.of(Long.MIN_VALUE, Long.MAX_VALUE)), enumConstant
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoChronology.java | 233 … field == ChronoField.INSTANT_SECONDS || field == ChronoField.NANO_OF_SECOND) { in test_zonedDateTime_TemporalAccessor() 241 if (field == ChronoField.INSTANT_SECONDS) { in test_zonedDateTime_TemporalAccessor()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 4214 long i = t.getLong(ChronoField.INSTANT_SECONDS) * 1000L + 4232 long i = t.getLong(ChronoField.INSTANT_SECONDS); 4262 t.isSupported(ChronoField.INSTANT_SECONDS)) {
|