/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime.java | 84 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TestOffsetDateTime 90 …0000500 = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59, 500), OFFSET_PONE); in setUp() 104 {2008, 6, 30, 11, 30, 20, 500, OFFSET_PONE}, in provider_sampleTimes() 105 {2008, 6, 30, 11, 0, 0, 0, OFFSET_PONE}, in provider_sampleTimes() 106 {2008, 6, 30, 23, 59, 59, 999999999, OFFSET_PONE}, in provider_sampleTimes() 107 {-1, 1, 1, 0, 0, 0, 0, OFFSET_PONE}, in provider_sampleTimes() 129 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameLocal() 137 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameLocal_noChange() 138 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE); in test_withOffsetSameLocal_noChange() 144 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameInstant_noChange() [all …]
|
D | TestOffsetDateTime_instants.java | 81 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TestOffsetDateTime_instants 88 OffsetDateTime.ofInstant((Instant) null, OFFSET_PONE); in factory_ofInstant_nullInstant() local 100 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_PONE); in factory_ofInstant_allSecsInDay()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetDateTime.java | 151 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetDateTime 163 … TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(2008, 6, 30, 11, 30, 59, 500, OFFSET_PONE); in setUp() 275 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE); 284 assertEquals(test.getOffset(), OFFSET_PONE); 349 OffsetDateTime test = OffsetDateTime.of(2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE); 350 check(test, 2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE); 358 OffsetDateTime test = OffsetDateTime.of(date, time, OFFSET_PONE); 359 check(test, 2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE); 365 OffsetDateTime.of((LocalDate) null, time, OFFSET_PONE); 371 OffsetDateTime.of(date, (LocalTime) null, OFFSET_PONE); [all …]
|
D | TCKOffsetTime.java | 133 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetTime 145 TEST_11_30_59_500_PONE = OffsetTime.of(11, 30, 59, 500, OFFSET_PONE); in setUp() 298 OffsetTime test = OffsetTime.of(11, 30, 10, 500, OFFSET_PONE); 299 check(test, 11, 30, 10, 500, OFFSET_PONE); 306 OffsetTime test = OffsetTime.of(localTime, OFFSET_PONE); 307 check(test, 11, 30, 10, 500, OFFSET_PONE); 312 OffsetTime.of((LocalTime) null, OFFSET_PONE); 383 …uals(OffsetTime.from(OffsetTime.of(17, 30, 0, 0, OFFSET_PONE)), OffsetTime.of(17, 30, 0, 0, OFFSET… 388 ZonedDateTime base = LocalDateTime.of(2007, 7, 15, 11, 30, 59, 500).atZone(OFFSET_PONE); 474 OffsetTime.of(null, OFFSET_PONE); [all …]
|
D | TCKLocalDate.java | 138 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKLocalDate 293 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE); 508 LocalDate.ofInstant(Instant.MAX, OFFSET_PONE); 513 LocalDate.ofInstant(Instant.MIN, OFFSET_PONE); 1819 OffsetDateTime end = start.plusDays(2).atStartOfDay().atOffset(OFFSET_PONE); 2116 …als(t.atTime(OffsetTime.of(11, 30, 0, 0, OFFSET_PONE)), OffsetDateTime.of(2008, 6, 30, 11, 30, 0, … 2148 …{LocalDate.of(2008, 6, 30), OFFSET_PONE, ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 0, 0), OFF… 2195 … {LocalDate.of(1858, 11, 17).toEpochSecond(LocalTime.MIDNIGHT, OFFSET_PONE), -3506720400L}, 2196 {LocalDate.of(1, 1, 1).toEpochSecond(LocalTime.NOON, OFFSET_PONE), -62135557200L}, 2199 {LocalDate.of(-1, 12, 31).toEpochSecond(LocalTime.NOON, OFFSET_PONE), -62167266000L}, [all …]
|
D | TCKLocalDateTime.java | 154 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKLocalDateTime 320 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE); 775 LocalDateTime.ofInstant(Instant.MAX, OFFSET_PONE) ; 780 LocalDateTime.ofInstant(Instant.MIN, OFFSET_PONE) ; 816 LocalDateTime.ofEpochSecond(Long.MAX_VALUE, 500, OFFSET_PONE); // TODO: better test 821 LocalDateTime.ofEpochSecond(Long.MIN_VALUE, 500, OFFSET_PONE); // TODO: better test 826 LocalDateTime.ofEpochSecond(0, 1_000_000_000, OFFSET_PONE); 831 LocalDateTime.ofEpochSecond(0, -1, OFFSET_PONE); 1137 …OffsetDateTime.of(2210, 2, 2, 0, 0, 0, 0, OFFSET_PONE), OffsetDateTime.of(2012, 3, 4, 23, 5, 0, 0,… 2913 OffsetDateTime end = start.plusDays(2).atOffset(OFFSET_PONE);
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 100 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKZoneRules 140 assertEquals(test.getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 141 assertEquals(test.getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 142 assertEquals(test.getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 143 assertEquals(test.getOffset(createInstant(2008, 7, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 144 assertEquals(test.getOffset(createInstant(2008, 8, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 145 assertEquals(test.getOffset(createInstant(2008, 9, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 146 assertEquals(test.getOffset(createInstant(2008, 10, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset() 161 assertEquals(test.getOffset(createInstant(2008, 3, 31, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset_toDST() 164 … assertEquals(test.getOffset(createInstant(2008, 3, 30, 1, 0, 0, 0, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset_toDST() [all …]
|
D | TCKFixedZoneRules.java | 88 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKFixedZoneRules 92 private static final Instant INSTANT = LDT.toInstant(OFFSET_PONE); 101 {make(OFFSET_PONE), OFFSET_PONE}, in data_rules() 188 test.getTransitions().add(ZoneOffsetTransition.of(LDT, OFFSET_PONE, OFFSET_PTWO)); in test_getTransitions_immutable() 199 …ull, LocalTime.of(12, 30), false, TimeDefinition.STANDARD, OFFSET_PONE, OFFSET_PTWO, OFFSET_PONE)); in test_getTransitionRules_immutable() 207 ZoneRules a = make(OFFSET_PONE); in test_equalsHashCode()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestFixedZoneRules.java | 79 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TestFixedZoneRules 88 ZoneRules test = make(OFFSET_PONE); in test_data_nullInput() 89 assertEquals(test.getOffset((Instant) null), OFFSET_PONE); in test_data_nullInput() local 90 assertEquals(test.getOffset((LocalDateTime) null), OFFSET_PONE); in test_data_nullInput() local 92 assertEquals(test.getValidOffsets(null).get(0), OFFSET_PONE); in test_data_nullInput() 94 assertEquals(test.getStandardOffset(null), OFFSET_PONE); in test_data_nullInput() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKFixedZoneRulesSerialization.java | 80 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKFixedZoneRulesSerialization 91 {make(OFFSET_PONE), OFFSET_PONE}, in data_rules()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKOffsetTimeSerialization.java | 77 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetTimeSerialization 82 TEST_11_30_59_500_PONE = OffsetTime.of(11, 30, 59, 500, OFFSET_PONE); in setUp()
|
D | TCKOffsetDateTimeSerialization.java | 79 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetDateTimeSerialization 84 … TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(2008, 6, 30, 11, 30, 59, 500, OFFSET_PONE); in setUp()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 118 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKDateTimeFormatter 282 OffsetTime ot = OffsetTime.of(LocalTime.of(11, 30), OFFSET_PONE); in data_format_withZone_withChronology() 283 OffsetDateTime odt = OffsetDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET_PONE); in data_format_withZone_withChronology()
|