Top Description Fields Constructors Methods
com.ibm.icu.util

public Class TimeZoneTransition

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private final TimeZoneRule
private final long
private final TimeZoneRule

Constructor Summary

AccessConstructor and Description
public
TimeZoneTransition(long
The time of transition in milliseconds since the base time.
time
,
TimeZoneRule
The time zone rule used before the transition.
from
,
TimeZoneRule
The time zone rule used after the transition.
to
)

Constructs a TimeZoneTransition with the time and the rules before/after the transition.

Method Summary

Modifier and TypeMethod and Description
public TimeZoneRule

Returns:

The time zone rule used after the transition.
getFrom
()

Returns the rule used before the transition.

public long

Returns:

The time of the transition in milliseconds since the base time.
getTime
()

Returns the time of transition in milliseconds since the base time.

public TimeZoneRule

Returns:

The time zone rule used after the transition.
getTo
()

Returns the rule used after the transition.

public String
toString()

Overrides java.lang.Object.toString.

Returns a String representation of this TimeZoneTransition object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fromback to summary
private final TimeZoneRule from
timeback to summary
private final long time
toback to summary
private final TimeZoneRule to

Constructor Detail

TimeZoneTransitionback to summary
public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to)

Constructs a TimeZoneTransition with the time and the rules before/after the transition.

Parameters
time:long

The time of transition in milliseconds since the base time.

from:TimeZoneRule

The time zone rule used before the transition.

to:TimeZoneRule

The time zone rule used after the transition.

ICU Status
Stable since ICU 3.8.

Method Detail

getFromback to summary
public TimeZoneRule getFrom()

Returns the rule used before the transition.

Returns:TimeZoneRule

The time zone rule used after the transition.

ICU Status
Stable since ICU 3.8.
getTimeback to summary
public long getTime()

Returns the time of transition in milliseconds since the base time.

Returns:long

The time of the transition in milliseconds since the base time.

ICU Status
Stable since ICU 3.8.
getToback to summary
public TimeZoneRule getTo()

Returns the rule used after the transition.

Returns:TimeZoneRule

The time zone rule used after the transition.

ICU Status
Stable since ICU 3.8.
toStringback to summary
public String toString()

Overrides java.lang.Object.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.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override
ICU Status
Stable since ICU 3.8.