Class TimeZoneTransition
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.TimeZoneTransition
TimeZoneTransition is a class representing a time zone transition.
An instance has a time of transition and rules for both before and
after the transition.-
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to) Constructs aTimeZoneTransitionwith the time and the rules before/after the transition. -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()Returns the rule used before the transition.longgetTime()Returns the time of transition in milliseconds since the base time.getTo()Returns the rule used after the transition.toString()Returns aStringrepresentation of thisTimeZoneTransitionobject.
-
Constructor Details
-
TimeZoneTransition
Constructs aTimeZoneTransitionwith the time and the rules before/after the transition.- Parameters:
time- The time of transition in milliseconds since the base time.from- The time zone rule used before the transition.to- The time zone rule used after the transition.
-
-
Method Details
-
getTime
public long getTime()Returns the time of transition in milliseconds since the base time.- Returns:
- The time of the transition in milliseconds since the base time.
-
getTo
Returns the rule used after the transition.- Returns:
- The time zone rule used after the transition.
-
getFrom
Returns the rule used before the transition.- Returns:
- The time zone rule used after the transition.
-
toString
-