Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java109 private final LocalDateTime transition; field in ZoneOffsetTransition
134 …public static ZoneOffsetTransition of(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffse… in of() argument
135 Objects.requireNonNull(transition, "transition"); in of()
141 if (transition.getNano() != 0) { in of()
144 return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter); in of()
154 … ZoneOffsetTransition(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter) { in ZoneOffsetTransition() argument
155 this.transition = transition; in ZoneOffsetTransition()
168 this.transition = LocalDateTime.ofEpochSecond(epochSecond, 0, offsetBefore); in ZoneOffsetTransition()
247 return transition.toInstant(offsetBefore); in getInstant()
256 return transition.toEpochSecond(offsetBefore); in toEpochSecond()
[all …]
DIcuZoneRulesProvider.java126 TimeZoneTransition transition = tz.getNextTransition(Long.MIN_VALUE, false); in generateZoneRules() local
134 while (transition != null) { in generateZoneRules()
135 TimeZoneRule from = transition.getFrom(); in generateZoneRules()
136 TimeZoneRule to = transition.getTo(); in generateZoneRules()
140 TimeUnit.MILLISECONDS.toSeconds(transition.getTime()), in generateZoneRules()
149 TimeUnit.MILLISECONDS.toSeconds(transition.getTime()), in generateZoneRules()
171 transition = tz.getNextTransition(transition.getTime(), false); in generateZoneRules()
172 verify(transition.getTo() == last1, zoneId, in generateZoneRules()
182 transition = tz.getNextTransition(transition.getTime(), false); in generateZoneRules()
DZoneOffsetTransitionRule.java499 … LocalDateTime transition = timeDefinition.createDateTime(localDT, standardOffset, offsetBefore); in createTransition() local
500 return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter); in createTransition()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java157 private static boolean isIcuOnlyTransition(TimeZoneTransition transition) { in isIcuOnlyTransition() argument
158 if (transition == null) { in isIcuOnlyTransition()
161 return transition.getFrom().getRawOffset() + transition.getFrom().getDSTSavings() in isIcuOnlyTransition()
162 == transition.getTo().getRawOffset() + transition.getTo().getDSTSavings(); in isIcuOnlyTransition()
DZoneOffsetTransitionTest.java39 ZoneOffsetTransition transition = ZoneOffsetTransition.of(time, in test_toEpochSeconds() local
44 transition.toEpochSecond()); in test_toEpochSeconds()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java709 CalendarDate transition = null; in roll() local
711 transition = eras[eraIndex].getSinceDate(); in roll()
712 min = transition.getMonth() - 1; in roll()
715 transition = eras[eraIndex + 1].getSinceDate(); in roll()
716 if (transition.getYear() == jdate.getNormalizedYear()) { in roll()
717 max = transition.getMonth() - 1; in roll()
718 if (transition.getDayOfMonth() == 1) { in roll()
734 if (!(transition.getMonth() == BaseCalendar.JANUARY in roll()
735 && transition.getDayOfMonth() == 1)) { in roll()
736 if (jdate.getDayOfMonth() < transition.getDayOfMonth()) { in roll()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DR.java2419 public static final int transition = 0; field in R