Home
last modified time | relevance | path

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

12

/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);
DOffsetTime.java69 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()
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()
DZonedDateTime.java66 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/
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()
DParsed.java78 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()
DDateTimeFormatterBuilder.java77 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/
DTCKZoneOffset.java62 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()
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()
DTCKMonthDay.java411 assertEquals(TEST_07_15.isSupported(ChronoField.OFFSET_SECONDS), false); in test_isSupported_TemporalField()
/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/test/java/time/temporal/
DTestChronoField.java93 fieldMap.put(ChronoField.OFFSET_SECONDS, "zone"); in initClass()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java109 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()

12