/libcore/luni/src/test/java/libcore/java/time/ |
D | ZoneOffsetTest.java | 41 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()
|
D | YearMonthTest.java | 117 ChronoField.OFFSET_SECONDS, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 66 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 364 if (temporal.isSupported(OFFSET_SECONDS)) { 365 return ZoneOffset.ofTotalSeconds(temporal.get(OFFSET_SECONDS));
|
D | ChronoField.java | 590 OFFSET_SECONDS("OffsetSeconds", SECONDS, FOREVER, ValueRange.of(-18 * 3600, 18 * 3600)); enumConstant
|
/libcore/ojluni/src/main/java/java/time/ |
D | ZoneOffset.java | 67 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);
|
D | OffsetDateTime.java | 67 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/ |
D | ChronoZonedDateTime.java | 65 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()
|
D | ChronoZonedDateTimeImpl.java | 289 case OFFSET_SECONDS: { in with()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 66 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/ |
D | TestDateTimeParsing.java | 67 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter(); 116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
|
D | TestZoneOffsetParser.java | 62 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/ |
D | TCKZonedDateTime.java | 87 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 …]
|
D | TCKOffsetTime.java | 75 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…
|
D | TCKOffsetDateTime.java | 87 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,
|
D | TCKDayOfWeek.java | 197 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 189 assertEquals(Month.AUGUST.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKYear.java | 365 assertEquals(TEST_2008.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKInstant.java | 529 … {Instant.ofEpochSecond(10, 200), ChronoField.OFFSET_SECONDS, 1, null, DateTimeException.class},
|
D | TCKYearMonth.java | 430 assertEquals(TEST_2008_06.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 639 assertEquals(TEST_2007_07_15.isSupported(ChronoField.OFFSET_SECONDS), false);
|
D | TCKLocalTime.java | 627 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
D | TCKLocalDateTime.java | 951 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.OFFSET_SECONDS), false);
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 112 assertEquals(false, date.isSupported(ChronoField.OFFSET_SECONDS)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 70 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()
|