Home
last modified time | relevance | path

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

/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()
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/
DDateTimePrintContext.java65 import static java.time.temporal.ChronoField.INSTANT_SECONDS;
148 if (temporal.isSupported(INSTANT_SECONDS)) { in adjust()
/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.java102 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());
DTCKYear.java364 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.java550 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.INSTANT_SECONDS), false);
DTCKLocalDate.java638 assertEquals(TEST_2007_07_15.isSupported(ChronoField.INSTANT_SECONDS), false);
DTCKLocalTime.java626 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.INSTANT_SECONDS), false); in test_isSupported_TemporalField()
DTCKLocalDateTime.java950 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.INSTANT_SECONDS), false);