/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 65 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 117 .appendValue(INSTANT_SECONDS).toFormatter(); 120 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter(); 123 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter(); 172 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantZones_supported() 211 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantNoZone_supported()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTime.java | 64 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 188 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 200 case INSTANT_SECONDS: in get() 214 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 | 70 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 343 if (fieldValues.containsKey(INSTANT_SECONDS)) { in resolveInstantFields() 357 Instant instant = Instant.ofEpochSecond(fieldValues.get(INSTANT_SECONDS)); in resolveInstantFields0() 360 … updateCheckConflict(INSTANT_SECONDS, SECOND_OF_DAY, (long) zdt.toLocalTime().toSecondOfDay()); in resolveInstantFields0() 361 … updateCheckConflict(INSTANT_SECONDS, OFFSET_SECONDS, (long) zdt.getOffset().getTotalSeconds()); in resolveInstantFields0() 629 (fieldValues.containsKey(INSTANT_SECONDS) || in resolveFractional() 647 if (!fieldValues.containsKey(INSTANT_SECONDS) && date != null && time != null) { in resolveInstant() 652 fieldValues.put(INSTANT_SECONDS, instant); in resolveInstant() 656 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; 3494 Long inSecs = context.getValue(INSTANT_SECONDS); in format() 3604 successPos = context.setParsedField(INSTANT_SECONDS, instantSecs, position, successPos); in parse() 4245 if (dt.isSupported(ChronoField.INSTANT_SECONDS)) { in format()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 68 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 368 long instantSecs = temporal.getLong(INSTANT_SECONDS); in from() 454 …return field == INSTANT_SECONDS || field == NANO_OF_SECOND || field == MICRO_OF_SECOND || field ==… in isSupported() 595 case INSTANT_SECONDS: return seconds; in getLong() 711 case INSTANT_SECONDS: return (newValue != seconds ? create(newValue, nanos) : this); in with() 1088 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; 550 if (temporal.isSupported(INSTANT_SECONDS)) { in from() 551 long epochSecond = temporal.getLong(INSTANT_SECONDS); in from() 771 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 811 case INSTANT_SECONDS: in get() 848 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 1298 case INSTANT_SECONDS: in with()
|
D | OffsetDateTime.java | 65 import static java.time.temporal.ChronoField.INSTANT_SECONDS; 554 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 594 case INSTANT_SECONDS: in get() 631 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 965 … case INSTANT_SECONDS: return ofInstant(Instant.ofEpochSecond(newValue, getNano()), offset); in with()
|
/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/ |
D | YearMonthTest.java | 108 ChronoField.INSTANT_SECONDS, in test_with_TemporalField_long_invalidField()
|
/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; 205 INSTANT_SECONDS, in validFields() 552 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.INSTANT_SECONDS), true); 618 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() 696 return field == INSTANT_SECONDS || field == NANO_OF_SECOND; 888 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.INSTANT_SECONDS), true); 955 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 | 384 assertEquals(TEST_2008.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 429 assertEquals(TEST_2008_06.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 542 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.INSTANT_SECONDS), false);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 599 …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 | 241 … field == ChronoField.INSTANT_SECONDS || field == ChronoField.NANO_OF_SECOND) { in test_zonedDateTime_TemporalAccessor() 249 if (field == ChronoField.INSTANT_SECONDS) { in test_zonedDateTime_TemporalAccessor()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 4349 long i = t.getLong(ChronoField.INSTANT_SECONDS) * 1000L + 4368 long i = t.getLong(ChronoField.INSTANT_SECONDS); 4398 t.isSupported(ChronoField.INSTANT_SECONDS)) {
|