Home
last modified time | relevance | path

Searched refs:OFFSET_PTWO (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKFormatStyle.java81 private static final ZoneId OFFSET_PTWO = ZoneOffset.of("+02:00"); field in TCKFormatStyle
102 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.FULL, "Tuesday… in data_formatStyle()
103 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "2 Octob… in data_formatStyle()
104 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.MEDIUM, "2 Oct… in data_formatStyle()
105 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.SHORT, "02/10/… in data_formatStyle()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKFixedZoneRules.java89 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKFixedZoneRules
102 {make(OFFSET_PTWO), OFFSET_PTWO}, in data_rules()
187 ZoneRules test = make(OFFSET_PTWO); in test_getTransitions_immutable()
188 test.getTransitions().add(ZoneOffsetTransition.of(LDT, OFFSET_PONE, OFFSET_PTWO)); in test_getTransitions_immutable()
198 ZoneRules test = make(OFFSET_PTWO); in test_getTransitionRules_immutable()
199 …ull, LocalTime.of(12, 30), false, TimeDefinition.STANDARD, OFFSET_PONE, OFFSET_PTWO, OFFSET_PONE)); in test_getTransitionRules_immutable()
208 ZoneRules b = make(OFFSET_PTWO); in test_equalsHashCode()
DTCKZoneRules.java101 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKZoneRules
237 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_gap()
263 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_overlap()
519 assertEquals(test.getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
520 assertEquals(test.getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
521 assertEquals(test.getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
522 assertEquals(test.getOffset(createInstant(2008, 7, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
523 assertEquals(test.getOffset(createInstant(2008, 8, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
524 assertEquals(test.getOffset(createInstant(2008, 9, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
525 assertEquals(test.getOffset(createInstant(2008, 10, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKFixedZoneRulesSerialization.java81 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKFixedZoneRulesSerialization
92 {make(OFFSET_PTWO), OFFSET_PTWO}, in data_rules()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKOffsetDateTime.java156 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKOffsetDateTime
743 …me test = TEST_2008_6_30_11_30_59_000000500.with(OffsetTime.of(LocalTime.of(19, 15), OFFSET_PTWO));
744 …ssertEquals(test, OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(19, 15), OFFSET_PTWO));
749 …_59_000000500.with(OffsetDateTime.of(LocalDate.of(2012, 9, 3), LocalTime.of(19, 15), OFFSET_PTWO));
750 …assertEquals(test, OffsetDateTime.of(LocalDate.of(2012, 9, 3), LocalTime.of(19, 15), OFFSET_PTWO));
761 OffsetDateTime test = TEST_2008_6_30_11_30_59_000000500.with(OFFSET_PTWO);
762 …ls(test, OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59, 500), OFFSET_PTWO));
782 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PTWO);
783 …ime expected = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(12, 30, 59), OFFSET_PTWO);
1157 … 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1},
[all …]
DTCKOffsetTime.java138 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKOffsetTime
644 OffsetTime test = base.withOffsetSameLocal(OFFSET_PTWO);
646 assertEquals(test.getOffset(), OFFSET_PTWO);
668 OffsetTime test = base.withOffsetSameInstant(OFFSET_PTWO);
669 OffsetTime expected = OffsetTime.of(12, 30, 59, 0, OFFSET_PTWO);
748 OffsetTime test = TEST_11_30_59_500_PONE.with(OffsetTime.of(13, 35, 0, 0, OFFSET_PTWO));
749 assertEquals(test, OffsetTime.of(13, 35, 0, 0, OFFSET_PTWO));
754 OffsetTime test = TEST_11_30_59_500_PONE.with(OFFSET_PTWO);
755 assertEquals(test, OffsetTime.of(11, 30, 59, 500, OFFSET_PTWO));
1087 … {OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1},
[all …]
DTCKLocalTime.java139 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalTime
740 …{LocalTime.of(23, 5), OffsetTime.of(1, 1, 0, 0, OFFSET_PTWO), OffsetTime.of(23, 5, 0, 0, OFFSET_PT… in data_adjustInto()
741 …OffsetDateTime.of(2210, 2, 2, 1, 1, 0, 0, OFFSET_PTWO), OffsetDateTime.of(2210, 2, 2, 23, 5, 0, 0,… in data_adjustInto()
2383 assertEquals(t.atOffset(OFFSET_PTWO), OffsetTime.of(LocalTime.of(11, 30), OFFSET_PTWO));
DTCKLocalDateTime.java156 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalDateTime
765 …{Instant.ofEpochSecond(-86400 + 4, 500), OFFSET_PTWO, LocalDateTime.of(1969, 12, 31, 2, 0, 4, 500)…
806 LocalDateTime test = LocalDateTime.ofEpochSecond(i, 500, OFFSET_PTWO);
815 LocalDateTime test = LocalDateTime.ofEpochSecond(-i, 500, OFFSET_PTWO);
2960 …assertEquals(t.atOffset(OFFSET_PTWO), OffsetDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFF…
2982 …assertEquals(t.atZone(OFFSET_PTWO), ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET…
2996 … ZonedDateTime.ofStrict(LocalDateTime.of(2007, 10, 28, 2, 30), OFFSET_PTWO, ZONE_PARIS));
DTCKInstant.java122 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKInstant
447 …setDateTime.of(1970, 1, 1, 0, 0, 20, 10, OFFSET_PTWO), OffsetDateTime.of(1970, 1, 1, 2, 0, 10, 200…
DTCKLocalDate.java137 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalDate
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java81 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TestOffsetDateTime
126 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO); in test_withOffsetSameLocal()
128 assertSame(test.getOffset(), OFFSET_PTWO); in test_withOffsetSameLocal() local
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java79 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TestUmmAlQuraChronology
654 …{OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), HijrahChronology.INSTANCE.date(1433, 4, … in data_zonedDateTime()
687 OffsetDateTime offsetDateTime = OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO); in test_Instant_zonedDateTime()
707 …{OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), HijrahChronology.INSTANCE.date(1433, 4, … in data_localDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKMinguoChronology.java109 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKMinguoChronology
415 …{OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), MinguoChronology.INSTANCE.date(MinguoEra… in data_localDateTime()
448 …{OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), MinguoChronology.INSTANCE.date(MinguoEra… in data_zonedDateTime()
481 OffsetDateTime offsetDateTime = OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO); in test_Instant_zonedDateTime()