Home
last modified time | relevance | path

Searched refs:OFFSET_SECONDS (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DZoneOffsetTest.java41 field == ChronoField.OFFSET_SECONDS, OFFSET_P1.isSupported(field)); in test_isSupported()
47 assertEquals(ChronoField.OFFSET_SECONDS.range(), in test_range()
48 OFFSET_P1.range(ChronoField.OFFSET_SECONDS)); in test_range()
60 if (field == ChronoField.OFFSET_SECONDS) { in test_range_unsupported()
DYearMonthTest.java117 ChronoField.OFFSET_SECONDS, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalQueries.java66 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
364 if (temporal.isSupported(OFFSET_SECONDS)) {
365 return ZoneOffset.ofTotalSeconds(temporal.get(OFFSET_SECONDS));
DChronoField.java590 OFFSET_SECONDS("OffsetSeconds", SECONDS, FOREVER, ValueRange.of(-18 * 3600, 18 * 3600)); enumConstant
/libcore/ojluni/src/main/java/java/time/
DZoneOffset.java67 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
525 return field == OFFSET_SECONDS;
585 if (field == OFFSET_SECONDS) {
617 if (field == OFFSET_SECONDS) {
679 return temporal.with(OFFSET_SECONDS, totalSeconds);
DOffsetDateTime.java67 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
553 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range()
595 case OFFSET_SECONDS: in get()
631 case OFFSET_SECONDS: return getOffset().getTotalSeconds(); in getLong()
966 case OFFSET_SECONDS: { in with()
1592 .with(OFFSET_SECONDS, getOffset().getTotalSeconds()); in adjustInto()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTime.java65 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
181 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range()
195 case OFFSET_SECONDS: in get()
208 case OFFSET_SECONDS: return getOffset().getTotalSeconds(); in getLong()
DChronoZonedDateTimeImpl.java289 case OFFSET_SECONDS: { in with()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java66 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
153 … if (overrideZone.normalized() instanceof ZoneOffset && temporal.isSupported(OFFSET_SECONDS) && in adjust()
154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java67 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
DTestZoneOffsetParser.java62 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
327 assertEquals(parsed.getLong(OFFSET_SECONDS), offsetSecs); in test_parse_bigOffsets()
440 assertEquals(parsed.isSupported(OFFSET_SECONDS), true); in assertParsed()
441 assertEquals(parsed.getLong(OFFSET_SECONDS), (long) expectedOffset.getTotalSeconds()); in assertParsed()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java87 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
210 OFFSET_SECONDS, in validFields()
894 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.OFFSET_SECONDS), true);
940 assertEquals(test.get(ChronoField.OFFSET_SECONDS), 3600);
959 assertEquals(test.getLong(ChronoField.OFFSET_SECONDS), 3600);
1334 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), OFFSET_SECONDS, 7200,
1336 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), OFFSET_SECONDS, 3600,
1338 …RIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), OFFSET_SECONDS, 3600,
1340 …PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withLaterOffsetAtOverlap(), OFFSET_SECONDS, 3600,
1342 …RIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), OFFSET_SECONDS, 7200,
[all …]
DTCKOffsetTime.java75 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
176 OFFSET_SECONDS, in validFields()
551 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.OFFSET_SECONDS), true);
591 assertEquals(test.get(ChronoField.OFFSET_SECONDS), 3600);
604 assertEquals(test.getLong(ChronoField.OFFSET_SECONDS), 3600);
787 …assertEquals(test.with(ChronoField.OFFSET_SECONDS, 7205), OffsetTime.of(12, 30, 40, 987654321, Zon…
DTCKOffsetDateTime.java87 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
208 OFFSET_SECONDS, in validFields()
568 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.OFFSET_SECONDS), true);
614 assertEquals(test.get(ChronoField.OFFSET_SECONDS), 3600);
634 assertEquals(test.getLong(ChronoField.OFFSET_SECONDS), 3600);
807 {TEST_2008_6_30_11_30_59_000000500, OFFSET_SECONDS, -3600,
DTCKDayOfWeek.java197 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
DTCKMonth.java189 assertEquals(Month.AUGUST.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
DTCKYear.java365 assertEquals(TEST_2008.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
DTCKInstant.java529 … {Instant.ofEpochSecond(10, 200), ChronoField.OFFSET_SECONDS, 1, null, DateTimeException.class},
DTCKYearMonth.java430 assertEquals(TEST_2008_06.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
DTCKLocalDate.java639 assertEquals(TEST_2007_07_15.isSupported(ChronoField.OFFSET_SECONDS), false);
DTCKLocalTime.java627 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
DTCKLocalDateTime.java951 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.OFFSET_SECONDS), false);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java112 assertEquals(false, date.isSupported(ChronoField.OFFSET_SECONDS)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java70 import static java.time.temporal.ChronoField.OFFSET_SECONDS;
1448 this.fields.put(OFFSET_SECONDS, (long) ZoneOffset.of(offsetId).getTotalSeconds()); in setOffset()
1502 fieldValues.put(OFFSET_SECONDS, (long) offset.getTotalSeconds()); in add()