public class TimeZoneTransition extends Object
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 | Description |
---|---|
TimeZoneTransition(long time,
TimeZoneRule from,
TimeZoneRule to) |
Constructs a
TimeZoneTransition with the time and the rules before/after
the transition. |
Modifier and Type | Method | Description |
---|---|---|
TimeZoneRule |
getFrom() |
Returns the rule used before the transition.
|
long |
getTime() |
Returns the time of transition in milliseconds since the base time.
|
TimeZoneRule |
getTo() |
Returns the rule used after the transition.
|
String |
toString() |
Returns a
String representation of this TimeZoneTransition object. |
public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to)
TimeZoneTransition
with the time and the rules before/after
the transition.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.public long getTime()
public TimeZoneRule getTo()
public TimeZoneRule getFrom()
Copyright ? 2016 Unicode, Inc. and others.