Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java80 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TestOffsetDateTime
86 …0000500 = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59, 500), OFFSET_PONE); in setUp()
100 {2008, 6, 30, 11, 30, 20, 500, OFFSET_PONE}, in provider_sampleTimes()
101 {2008, 6, 30, 11, 0, 0, 0, OFFSET_PONE}, in provider_sampleTimes()
102 {2008, 6, 30, 23, 59, 59, 999999999, OFFSET_PONE}, in provider_sampleTimes()
103 {-1, 1, 1, 0, 0, 0, 0, OFFSET_PONE}, in provider_sampleTimes()
125 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameLocal()
133 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameLocal_noChange()
134 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE); in test_withOffsetSameLocal_noChange()
140 …ateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE); in test_withOffsetSameInstant_noChange()
[all …]
DTestOffsetDateTime_instants.java81 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/
DTCKOffsetDateTime.java155 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetDateTime
167 … TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(2008, 6, 30, 11, 30, 59, 500, OFFSET_PONE); in setUp()
278 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
287 assertEquals(test.getOffset(), OFFSET_PONE);
352 OffsetDateTime test = OffsetDateTime.of(2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE);
353 check(test, 2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE);
361 OffsetDateTime test = OffsetDateTime.of(date, time, OFFSET_PONE);
362 check(test, 2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE);
368 OffsetDateTime.of((LocalDate) null, time, OFFSET_PONE);
374 OffsetDateTime.of(date, (LocalTime) null, OFFSET_PONE);
[all …]
DTCKOffsetTime.java137 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKOffsetTime
148 TEST_11_30_59_500_PONE = OffsetTime.of(11, 30, 59, 500, OFFSET_PONE); in setUp()
294 OffsetTime test = OffsetTime.of(11, 30, 10, 500, OFFSET_PONE);
295 check(test, 11, 30, 10, 500, OFFSET_PONE);
302 OffsetTime test = OffsetTime.of(localTime, OFFSET_PONE);
303 check(test, 11, 30, 10, 500, OFFSET_PONE);
308 OffsetTime.of((LocalTime) null, OFFSET_PONE);
379 …uals(OffsetTime.from(OffsetTime.of(17, 30, 0, 0, OFFSET_PONE)), OffsetTime.of(17, 30, 0, 0, OFFSET…
384 ZonedDateTime base = LocalDateTime.of(2007, 7, 15, 11, 30, 59, 500).atZone(OFFSET_PONE);
473 con.newInstance(null, OFFSET_PONE);
[all …]
DTCKLocalDateTime.java155 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKLocalDateTime
326 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
781 LocalDateTime.ofInstant(Instant.MAX, OFFSET_PONE) ;
786 LocalDateTime.ofInstant(Instant.MIN, OFFSET_PONE) ;
822 LocalDateTime.ofEpochSecond(Long.MAX_VALUE, 500, OFFSET_PONE); // TODO: better test
827 LocalDateTime.ofEpochSecond(Long.MIN_VALUE, 500, OFFSET_PONE); // TODO: better test
832 LocalDateTime.ofEpochSecond(0, 1_000_000_000, OFFSET_PONE);
837 LocalDateTime.ofEpochSecond(0, -1, OFFSET_PONE);
1143 …OffsetDateTime.of(2210, 2, 2, 0, 0, 0, 0, OFFSET_PONE), OffsetDateTime.of(2012, 3, 4, 23, 5, 0, 0,…
2919 OffsetDateTime end = start.plusDays(2).atOffset(OFFSET_PONE);
DTCKLocalDate.java136 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKLocalDate
290 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
1750 OffsetDateTime end = start.plusDays(2).atStartOfDay().atOffset(OFFSET_PONE);
2047 …als(t.atTime(OffsetTime.of(11, 30, 0, 0, OFFSET_PONE)), OffsetDateTime.of(2008, 6, 30, 11, 30, 0, …
2079 …{LocalDate.of(2008, 6, 30), OFFSET_PONE, ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 0, 0), OFF…
/libcore/ojluni/src/test/java/time/test/java/time/zone/
DTestFixedZoneRules.java79 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/
DTCKZoneRules.java100 private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1); field in TCKZoneRules
137 assertEquals(test.getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
138 assertEquals(test.getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
139 assertEquals(test.getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
140 assertEquals(test.getOffset(createInstant(2008, 7, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
141 assertEquals(test.getOffset(createInstant(2008, 8, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
142 assertEquals(test.getOffset(createInstant(2008, 9, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
143 assertEquals(test.getOffset(createInstant(2008, 10, 1, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset()
157 assertEquals(test.getOffset(createInstant(2008, 3, 31, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset_toDST()
160 … assertEquals(test.getOffset(createInstant(2008, 3, 30, 1, 0, 0, 0, ZoneOffset.UTC)), OFFSET_PONE); in test_London_getOffset_toDST()
[all …]
DTCKFixedZoneRules.java88 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/tck/java/time/zone/serial/
DTCKFixedZoneRulesSerialization.java80 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/
DTCKOffsetTimeSerialization.java77 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()
DTCKOffsetDateTimeSerialization.java79 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/
DTCKDateTimeFormatter.java118 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()