com.ibm.icu.util
Class TimeZoneTransition

java.lang.Object
  extended by com.ibm.icu.util.TimeZoneTransition

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.

Status:
Stable ICU 3.8.

Constructor Summary
TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to)
          Constructs a TimeZoneTransition with the time and the rules before/after the transition.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeZoneTransition

public TimeZoneTransition(long time,
                          TimeZoneRule from,
                          TimeZoneRule to)
Constructs a TimeZoneTransition with 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.
Status:
Stable ICU 3.8.
Method Detail

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.
Status:
Stable ICU 3.8.

getTo

public TimeZoneRule getTo()
Returns the rule used after the transition.

Returns:
The time zone rule used after the transition.
Status:
Stable ICU 3.8.

getFrom

public TimeZoneRule getFrom()
Returns the rule used before the transition.

Returns:
The time zone rule used after the transition.
Status:
Stable ICU 3.8.

toString

public String toString()
Returns a String representation of this TimeZoneTransition object. This method is used for debugging purpose only. The string representation can be changed in future version of ICU without any notice.

Overrides:
toString in class Object
Status:
Stable ICU 3.8.


Copyright (c) 2012 IBM Corporation and others.