Home
last modified time | relevance | path

Searched refs:INSTANT_SECONDS (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java65 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/
DChronoZonedDateTime.java64 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()
DChronoZonedDateTimeImpl.java288 case INSTANT_SECONDS: return plus(newValue - toEpochSecond(), SECONDS); in with()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java70 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()
DDateTimePrintContext.java65 import static java.time.temporal.ChronoField.INSTANT_SECONDS;
148 if (temporal.isSupported(INSTANT_SECONDS)) { in adjust()
DDateTimeFormatterBuilder.java72 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/
DInstant.java68 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()
DZonedDateTime.java64 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()
DOffsetDateTime.java65 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/
DTCKDateTimeParseResolver.java79 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()
DTCKDateTimeFormatters.java66 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/
DYearMonthTest.java108 ChronoField.INSTANT_SECONDS, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java102 assertEquals(false, date.isSupported(ChronoField.INSTANT_SECONDS)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java62 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…
DTCKDayOfWeek.java196 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java77 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());
DTCKMonth.java188 assertEquals(Month.AUGUST.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java77 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());
DTCKMonthDay.java410 assertEquals(TEST_07_15.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKYear.java384 assertEquals(TEST_2008.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKYearMonth.java429 assertEquals(TEST_2008_06.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java542 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.INSTANT_SECONDS), false);
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java599INSTANT_SECONDS("InstantSeconds", SECONDS, FOREVER, ValueRange.of(Long.MIN_VALUE, Long.MAX_VALUE)), enumConstant
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java241 … 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/
DFormatter.java4349 long i = t.getLong(ChronoField.INSTANT_SECONDS) * 1000L +
4368 long i = t.getLong(ChronoField.INSTANT_SECONDS);
4398 t.isSupported(ChronoField.INSTANT_SECONDS)) {

12