Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java63 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/
DInstant.java68 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()
DZonedDateTime.java64 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()
DOffsetDateTime.java65 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/
DChronoZonedDateTime.java64 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()
DChronoZonedDateTimeImpl.java288 case INSTANT_SECONDS: return plus(newValue - toEpochSecond(), SECONDS); in with()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java69 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()
DDateTimePrintContext.java65 import static java.time.temporal.ChronoField.INSTANT_SECONDS;
148 if (temporal.isSupported(INSTANT_SECONDS)) { in adjust()
DDateTimeFormatterBuilder.java73 import static java.time.temporal.ChronoField.INSTANT_SECONDS;
3186 Long inSecs = context.getValue(INSTANT_SECONDS); in format()
3295 successPos = context.setParsedField(INSTANT_SECONDS, instantSecs, position, successPos); in parse()
3753 dt.isSupported(ChronoField.INSTANT_SECONDS) in format()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java108 ChronoField.INSTANT_SECONDS, in test_with_TemporalField_long_invalidField()
/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/chrono/
DJapaneseChronologyTest.java99 assertEquals(false, date.isSupported(ChronoField.INSTANT_SECONDS)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java576INSTANT_SECONDS("InstantSeconds", SECONDS, FOREVER, ValueRange.of(Long.MIN_VALUE, Long.MAX_VALUE)), enumConstant
/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;
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());
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()
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());
DTCKMonthDay.java410 assertEquals(TEST_07_15.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKYear.java364 assertEquals(TEST_2008.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java550 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.INSTANT_SECONDS), false);
DTCKYearMonth.java429 assertEquals(TEST_2008_06.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java233 … 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/
DFormatter.java4214 long i = t.getLong(ChronoField.INSTANT_SECONDS) * 1000L +
4232 long i = t.getLong(ChronoField.INSTANT_SECONDS);
4262 t.isSupported(ChronoField.INSTANT_SECONDS)) {

12