/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 | OffsetTime.java | 69 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 391 return field.isTimeBased() || field == OFFSET_SECONDS; in isSupported() 459 if (field == OFFSET_SECONDS) { in range() 525 if (field == OFFSET_SECONDS) { in getLong() 723 if (field == OFFSET_SECONDS) { in with() 1117 .with(OFFSET_SECONDS, offset.getTotalSeconds()); in adjustInto()
|
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()
|
D | ZonedDateTime.java | 66 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 769 if (field == INSTANT_SECONDS || field == OFFSET_SECONDS) { in range() 811 case OFFSET_SECONDS: in get() 847 case OFFSET_SECONDS: return getOffset().getTotalSeconds(); in getLong() 1301 case OFFSET_SECONDS: in with()
|
/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()
|
D | Parsed.java | 78 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 333 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstantFields() 593 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstant()
|
D | DateTimeFormatterBuilder.java | 77 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 3343 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() 3382 return context.setParsedField(OFFSET_SECONDS, 0, position, position); in parse() 3389 … return context.setParsedField(OFFSET_SECONDS, 0, position, position + noOffsetLen); in parse() 3405 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, array[0]); in parse() 3410 return context.setParsedField(OFFSET_SECONDS, 0, position, position + noOffsetLen); in parse() 3482 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() 3544 return context.setParsedField(OFFSET_SECONDS, 0, position, pos); in parse() 3552 return context.setParsedField(OFFSET_SECONDS, 0, position, pos); in parse() 3611 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, pos); in parse() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneOffset.java | 62 import static java.time.temporal.ChronoField.OFFSET_SECONDS; 109 OFFSET_SECONDS, in validFields() 509 assertEquals(ZoneOffset.UTC.get(OFFSET_SECONDS), 0); in test_get_TemporalField() 510 assertEquals(ZoneOffset.ofHours(-2).get(OFFSET_SECONDS), -7200); in test_get_TemporalField() 511 assertEquals(ZoneOffset.ofHoursMinutesSeconds(0, 1, 5).get(OFFSET_SECONDS), 65); in test_get_TemporalField() 516 assertEquals(ZoneOffset.UTC.getLong(OFFSET_SECONDS), 0); in test_getLong_TemporalField() 517 assertEquals(ZoneOffset.ofHours(-2).getLong(OFFSET_SECONDS), -7200); in test_getLong_TemporalField() 518 assertEquals(ZoneOffset.ofHoursMinutesSeconds(0, 1, 5).getLong(OFFSET_SECONDS), 65); in test_getLong_TemporalField()
|
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 | TCKMonthDay.java | 411 assertEquals(TEST_07_15.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
|
/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/test/java/time/temporal/ |
D | TestChronoField.java | 93 fieldMap.put(ChronoField.OFFSET_SECONDS, "zone"); in initClass()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 109 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()
|