Home
last modified time | relevance | path

Searched refs:getInstant (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java232 assertEquals(trans.getInstant(), createInstant(2008, 3, 30, 1, 0, ZoneOffset.UTC)); in test_London_getOffsetInfo_gap()
257 assertEquals(trans.getInstant(), createInstant(2008, 10, 26, 1, 0, ZoneOffset.UTC)); in test_London_getOffsetInfo_overlap()
402 assertEquals(test.nextTransition(first.getInstant().minusNanos(1)), first); in test_London_nextTransition_historic()
408 assertEquals(test.nextTransition(cur.getInstant()), next); in test_London_nextTransition_historic()
409 assertEquals(test.nextTransition(next.getInstant().minusNanos(1)), next); in test_London_nextTransition_historic()
419 assertEquals(test.nextTransition(last.getInstant()), rules.get(0).createTransition(1998)); in test_London_nextTransition_rulesBased()
426 assertEquals(test.nextTransition(a.getInstant()), b); in test_London_nextTransition_rulesBased()
427 assertEquals(test.nextTransition(b.getInstant().minusNanos(1)), b); in test_London_nextTransition_rulesBased()
429 assertEquals(test.nextTransition(b.getInstant()), c); in test_London_nextTransition_rulesBased()
430 assertEquals(test.nextTransition(c.getInstant().minusNanos(1)), c); in test_London_nextTransition_rulesBased()
[all …]
DTCKZoneOffsetTransition.java126 assertEquals(test.getInstant(), before.toInstant(OFFSET_0200)); in test_getters_gap()
141 assertEquals(test.getInstant(), before.toInstant(OFFSET_0300)); in test_getters_overlap()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java246 public Instant getInstant() { in getInstant() method in ZoneOffsetTransition
400 return this.getInstant().compareTo(transition.getInstant()); in compareTo()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java147 instant = jtTrans.getInstant(); in testAllTransitions()
176 Instant.ofEpochMilli(icuTransition.getTime()), jtTransition.getInstant()); in assertEquivalent()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java265 assertEquals(trans.getInstant(), dateTime.toInstant(ZoneOffset.UTC)); in test_London_getOffsetInfo_gap()
291 assertEquals(trans.getInstant(), dateTime.toInstant(ZoneOffset.UTC)); in test_London_getOffsetInfo_overlap()
420 assertEquals(trans.getInstant(), createInstant(2008, 3, 30, 1, 0, 0, 0, ZoneOffset.UTC)); in test_Paris_getOffsetInfo_gap()
444 assertEquals(trans.getInstant(), createInstant(2008, 10, 26, 1, 0, 0, 0, ZoneOffset.UTC)); in test_Paris_getOffsetInfo_overlap()
592 … assertEquals(trans.getInstant(), createInstant(2008, 3, 9, 2, 0, 0, 0, ZoneOffset.ofHours(-5))); in test_NewYork_getOffsetInfo_gap()
615 … assertEquals(trans.getInstant(), createInstant(2008, 11, 2, 2, 0, 0, 0, ZoneOffset.ofHours(-4))); in test_NewYork_getOffsetInfo_overlap()