/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKFormatStyle.java | 86 private static final ZoneId OFFSET_PTWO = ZoneOffset.of("+02:00"); field in TCKFormatStyle 107 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.FULL, "Tuesday… in data_formatStyle() 108 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "2 Octob… in data_formatStyle() 109 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.MEDIUM, "2 Oct… in data_formatStyle() 110 …{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/ |
D | TCKFixedZoneRules.java | 89 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()
|
D | TCKZoneRules.java | 101 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKZoneRules 246 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_gap() 273 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_overlap() 540 assertEquals(test.getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 541 assertEquals(test.getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 542 assertEquals(test.getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 543 assertEquals(test.getOffset(createInstant(2008, 7, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 544 assertEquals(test.getOffset(createInstant(2008, 8, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 545 assertEquals(test.getOffset(createInstant(2008, 9, 1, ZoneOffset.UTC)), OFFSET_PTWO); in test_Paris_getOffset() 546 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/ |
D | TCKFixedZoneRulesSerialization.java | 81 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/ |
D | TCKOffsetDateTime.java | 152 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKOffsetDateTime 728 …me test = TEST_2008_6_30_11_30_59_000000500.with(OffsetTime.of(LocalTime.of(19, 15), OFFSET_PTWO)); 729 …ssertEquals(test, OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(19, 15), OFFSET_PTWO)); 734 …_59_000000500.with(OffsetDateTime.of(LocalDate.of(2012, 9, 3), LocalTime.of(19, 15), OFFSET_PTWO)); 735 …assertEquals(test, OffsetDateTime.of(LocalDate.of(2012, 9, 3), LocalTime.of(19, 15), OFFSET_PTWO)); 746 OffsetDateTime test = TEST_2008_6_30_11_30_59_000000500.with(OFFSET_PTWO); 747 …ls(test, OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59, 500), OFFSET_PTWO)); 767 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PTWO); 768 …ime expected = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(12, 30, 59), OFFSET_PTWO); 1142 … 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1}, [all …]
|
D | TCKOffsetTime.java | 134 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKOffsetTime 636 OffsetTime test = base.withOffsetSameLocal(OFFSET_PTWO); 638 assertEquals(test.getOffset(), OFFSET_PTWO); 660 OffsetTime test = base.withOffsetSameInstant(OFFSET_PTWO); 661 OffsetTime expected = OffsetTime.of(12, 30, 59, 0, OFFSET_PTWO); 740 OffsetTime test = TEST_11_30_59_500_PONE.with(OffsetTime.of(13, 35, 0, 0, OFFSET_PTWO)); 741 assertEquals(test, OffsetTime.of(13, 35, 0, 0, OFFSET_PTWO)); 746 OffsetTime test = TEST_11_30_59_500_PONE.with(OFFSET_PTWO); 747 assertEquals(test, OffsetTime.of(11, 30, 59, 500, OFFSET_PTWO)); 1079 … {OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1}, [all …]
|
D | TCKLocalTime.java | 140 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalTime 429 {Instant.ofEpochSecond(-86400 + 4, 500), OFFSET_PTWO, LocalTime.of(2, 0, 4, 500)}, in data_instantFactory() 768 …{LocalTime.of(23, 5), OffsetTime.of(1, 1, 0, 0, OFFSET_PTWO), OffsetTime.of(23, 5, 0, 0, OFFSET_PT… in data_adjustInto() 769 …OffsetDateTime.of(2210, 2, 2, 1, 1, 0, 0, OFFSET_PTWO), OffsetDateTime.of(2210, 2, 2, 23, 5, 0, 0,… in data_adjustInto() 2411 assertEquals(t.atOffset(OFFSET_PTWO), OffsetTime.of(LocalTime.of(11, 30), OFFSET_PTWO)); 2438 {LocalTime.of(0, 0).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO), -7200L}, 2439 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1965, 12, 31), OFFSET_PTWO), -126282600L}, 2441 {LocalTime.of(0, 0).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO), 2445 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO), 2446 LocalDateTime.of(1970, 1, 1, 11, 30).toEpochSecond(OFFSET_PTWO)},
|
D | TCKLocalDateTime.java | 155 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalDateTime 759 …{Instant.ofEpochSecond(-86400 + 4, 500), OFFSET_PTWO, LocalDateTime.of(1969, 12, 31, 2, 0, 4, 500)… 800 LocalDateTime test = LocalDateTime.ofEpochSecond(i, 500, OFFSET_PTWO); 809 LocalDateTime test = LocalDateTime.ofEpochSecond(-i, 500, OFFSET_PTWO); 2954 …assertEquals(t.atOffset(OFFSET_PTWO), OffsetDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFF… 2976 …assertEquals(t.atZone(OFFSET_PTWO), ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET… 2990 … ZonedDateTime.ofStrict(LocalDateTime.of(2007, 10, 28, 2, 30), OFFSET_PTWO, ZONE_PARIS));
|
D | TCKInstant.java | 122 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…
|
D | TCKLocalDate.java | 139 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TCKLocalDate 492 {Instant.ofEpochSecond(-86400 + 4, 500), OFFSET_PTWO, LocalDate.of(1969, 12, 31)}, 2197 {LocalDate.of(1995, 9, 27).toEpochSecond(LocalTime.of(5, 30), OFFSET_PTWO), 812172600L}, 2202 {LocalDate.of(1995, 9, 27).toEpochSecond(LocalTime.NOON, OFFSET_PTWO),
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime.java | 85 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TestOffsetDateTime 130 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO); in test_withOffsetSameLocal() 132 assertSame(test.getOffset(), OFFSET_PTWO); in test_withOffsetSameLocal() local
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 80 private static final ZoneOffset OFFSET_PTWO = ZoneOffset.ofHours(2); field in TestUmmAlQuraChronology 656 …{OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), HijrahChronology.INSTANCE.date(1433, 4, … in data_zonedDateTime() 689 OffsetDateTime offsetDateTime = OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO); in test_Instant_zonedDateTime() 709 …{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/ |
D | TCKMinguoChronology.java | 109 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()
|