Home
last modified time | relevance | path

Searched refs:trans (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java227 ZoneOffsetTransition trans = checkOffset(test, dateTime, OFFSET_ZERO, GAP); in test_London_getOffsetInfo_gap() local
228 assertEquals(trans.isGap(), true); in test_London_getOffsetInfo_gap()
229 assertEquals(trans.isOverlap(), false); in test_London_getOffsetInfo_gap()
230 assertEquals(trans.getOffsetBefore(), OFFSET_ZERO); in test_London_getOffsetInfo_gap()
231 assertEquals(trans.getOffsetAfter(), OFFSET_PONE); in test_London_getOffsetInfo_gap()
232 assertEquals(trans.getInstant(), createInstant(2008, 3, 30, 1, 0, ZoneOffset.UTC)); in test_London_getOffsetInfo_gap()
233 assertEquals(trans.getDateTimeBefore(), LocalDateTime.of(2008, 3, 30, 1, 0)); in test_London_getOffsetInfo_gap()
234 assertEquals(trans.getDateTimeAfter(), LocalDateTime.of(2008, 3, 30, 2, 0)); in test_London_getOffsetInfo_gap()
235 assertEquals(trans.isValidOffset(OFFSET_ZERO), false); in test_London_getOffsetInfo_gap()
236 assertEquals(trans.isValidOffset(OFFSET_PONE), false); in test_London_getOffsetInfo_gap()
[all …]
DTCKZoneOffsetTransitionRule.java219 ZoneOffsetTransition trans = ZoneOffsetTransition.of( in test_createTransition_floatingWeek_gap_notEndOfDay() local
221 assertEquals(test.createTransition(2000), trans); in test_createTransition_floatingWeek_gap_notEndOfDay()
229 ZoneOffsetTransition trans = ZoneOffsetTransition.of( in test_createTransition_floatingWeek_overlap_endOfDay() local
231 assertEquals(test.createTransition(2000), trans); in test_createTransition_floatingWeek_overlap_endOfDay()
239 ZoneOffsetTransition trans = ZoneOffsetTransition.of( in test_createTransition_floatingWeekBackwards_last() local
241 assertEquals(test.createTransition(2000), trans); in test_createTransition_floatingWeekBackwards_last()
249 ZoneOffsetTransition trans = ZoneOffsetTransition.of( in test_createTransition_floatingWeekBackwards_seventhLast() local
251 assertEquals(test.createTransition(2000), trans); in test_createTransition_floatingWeekBackwards_seventhLast()
259 ZoneOffsetTransition trans = ZoneOffsetTransition.of( in test_createTransition_floatingWeekBackwards_secondLast() local
261 assertEquals(test.createTransition(2000), trans); in test_createTransition_floatingWeekBackwards_secondLast()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java260 … ZoneOffsetTransition trans = checkOffset(test.getRules(), dateTime, ZoneOffset.ofHours(0), GAP); in test_London_getOffsetInfo_gap() local
261 assertEquals(trans.isGap(), true); in test_London_getOffsetInfo_gap()
262 assertEquals(trans.isOverlap(), false); in test_London_getOffsetInfo_gap()
263 assertEquals(trans.getOffsetBefore(), ZoneOffset.ofHours(0)); in test_London_getOffsetInfo_gap()
264 assertEquals(trans.getOffsetAfter(), ZoneOffset.ofHours(1)); in test_London_getOffsetInfo_gap()
265 assertEquals(trans.getInstant(), dateTime.toInstant(ZoneOffset.UTC)); in test_London_getOffsetInfo_gap()
266 assertEquals(trans.getDateTimeBefore(), LocalDateTime.of(2008, 3, 30, 1, 0)); in test_London_getOffsetInfo_gap()
267 assertEquals(trans.getDateTimeAfter(), LocalDateTime.of(2008, 3, 30, 2, 0)); in test_London_getOffsetInfo_gap()
268 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(-1)), false); in test_London_getOffsetInfo_gap()
269 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(0)), false); in test_London_getOffsetInfo_gap()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java233 for (ZoneOffsetTransition trans : transitionList) { in ZoneRules()
234 if (trans.isGap()) { in ZoneRules()
235 localTransitionList.add(trans.getDateTimeBefore()); in ZoneRules()
236 localTransitionList.add(trans.getDateTimeAfter()); in ZoneRules()
238 localTransitionList.add(trans.getDateTimeAfter()); in ZoneRules()
239 localTransitionList.add(trans.getDateTimeBefore()); in ZoneRules()
241 localTransitionOffsetList.add(trans.getOffsetAfter()); in ZoneRules()
289 …ZoneOffsetTransition trans = new ZoneOffsetTransition(savingsInstantTransitions[i], before, after); in ZoneRules() local
290 if (trans.isGap()) { in ZoneRules()
291 localTransitionList.add(trans.getDateTimeBefore()); in ZoneRules()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java148 ZoneOffsetTransition trans = rules.getTransition(isoLDT); in ofBest() local
149 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofBest()
150 offset = trans.getOffsetAfter(); in ofBest()
232 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withEarlierOffsetAtOverlap() local
233 if (trans != null && trans.isOverlap()) { in withEarlierOffsetAtOverlap()
234 ZoneOffset earlierOffset = trans.getOffsetBefore(); in withEarlierOffsetAtOverlap()
244 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withLaterOffsetAtOverlap() local
245 if (trans != null) { in withLaterOffsetAtOverlap()
246 ZoneOffset offset = trans.getOffsetAfter(); in withLaterOffsetAtOverlap()
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java372 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofLocal() local
373 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofLocal()
374 offset = trans.getOffsetAfter(); in ofLocal()
474 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofStrict() local
475 if (trans != null && trans.isGap()) { in ofStrict()
885 ZoneOffsetTransition trans = getZone().getRules().getTransition(dateTime); in withEarlierOffsetAtOverlap() local
886 if (trans != null && trans.isOverlap()) { in withEarlierOffsetAtOverlap()
887 ZoneOffset earlierOffset = trans.getOffsetBefore(); in withEarlierOffsetAtOverlap()
913 ZoneOffsetTransition trans = getZone().getRules().getTransition(toLocalDateTime()); in withLaterOffsetAtOverlap() local
914 if (trans != null) { in withLaterOffsetAtOverlap()
[all …]
DLocalDate.java1812 ZoneOffsetTransition trans = rules.getTransition(ldt); in atStartOfDay() local
1813 if (trans != null && trans.isGap()) { in atStartOfDay()
1814 ldt = trans.getDateTimeAfter(); in atStartOfDay()