| java.lang.Object com.ibm.icu.util.TimeZone com.ibm.icu.impl.JDKTimeZone
All known Subclasses: com.ibm.icu.util.SimpleTimeZone,
JDKTimeZone | public class JDKTimeZone extends TimeZone (Code) | | Wrapper around OlsonTimeZone object. Due to serialziation constraints
SimpleTimeZone cannot be a subclass of OlsonTimeZone.
The complement of this is TimeZoneAdapter, which makes a
com.ibm.icu.util.TimeZone look like a java.util.TimeZone.
See Also: com.ibm.icu.impl.JDKTimeZone author: Alan Liu since: ICU 2.8 |
Field Summary | |
protected transient OlsonTimeZone | zone The java.util.TimeZone wrapped by this object. |
Method Summary | |
public Object | clone() Boilerplate API; calls through to wrapped object. | public boolean | equals(Object obj) Boilerplate API; calls through to wrapped object. | public int | getDSTSavings() Returns the amount of time in ms that the clock is advanced during DST.
the number of milliseconds the time isadvanced with respect to standard time when the daylight savings rulesare in effect. | public int | getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) TimeZone API; calls through to wrapped time zone. | public void | getOffset(long date, boolean local, int[] offsets) | public int | getRawOffset() TimeZone API; calls through to wrapped time zone. | public boolean | hasSameRules(TimeZone other) TimeZone API. | public synchronized int | hashCode() Boilerplate API; calls through to wrapped object. | public boolean | inDaylightTime(Date date) TimeZone API; calls through to wrapped time zone. | public void | setID(String ID) Sets the time zone ID. | public void | setRawOffset(int offsetMillis) TimeZone API; calls through to wrapped time zone. | public String | toString() Returns a string representation of this object. | public boolean | useDaylightTime() TimeZone API; calls through to wrapped time zone. | public static TimeZone | wrap(java.util.TimeZone tz) Given a java.util.TimeZone, wrap it in the appropriate adapter
subclass of com.ibm.icu.util.TimeZone and return the adapter. |
zone | protected transient OlsonTimeZone zone(Code) | | The java.util.TimeZone wrapped by this object. Must not be null.
|
JDKTimeZone | public JDKTimeZone(java.util.TimeZone tz)(Code) | | Constructs a JDKTimeZone given a java.util.TimeZone reference
which must not be null.
Parameters: tz - the time zone to wrap |
JDKTimeZone | protected JDKTimeZone()(Code) | | Default constructor
|
clone | public Object clone()(Code) | | Boilerplate API; calls through to wrapped object.
|
equals | public boolean equals(Object obj)(Code) | | Boilerplate API; calls through to wrapped object.
|
getDSTSavings | public int getDSTSavings()(Code) | | Returns the amount of time in ms that the clock is advanced during DST.
the number of milliseconds the time isadvanced with respect to standard time when the daylight savings rulesare in effect. A positive number, typically one hour (3600000). |
getOffset | public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)(Code) | | TimeZone API; calls through to wrapped time zone.
|
getOffset | public void getOffset(long date, boolean local, int[] offsets)(Code) | | |
getRawOffset | public int getRawOffset()(Code) | | TimeZone API; calls through to wrapped time zone.
|
hasSameRules | public boolean hasSameRules(TimeZone other)(Code) | | TimeZone API.
|
hashCode | public synchronized int hashCode()(Code) | | Boilerplate API; calls through to wrapped object.
|
inDaylightTime | public boolean inDaylightTime(Date date)(Code) | | TimeZone API; calls through to wrapped time zone.
|
setID | public void setID(String ID)(Code) | | Sets the time zone ID. This does not change any other data in
the time zone object.
Parameters: ID - the new time zone ID. |
setRawOffset | public void setRawOffset(int offsetMillis)(Code) | | TimeZone API; calls through to wrapped time zone.
|
toString | public String toString()(Code) | | Returns a string representation of this object.
a string representation of this object. |
useDaylightTime | public boolean useDaylightTime()(Code) | | TimeZone API; calls through to wrapped time zone.
|
wrap | public static TimeZone wrap(java.util.TimeZone tz)(Code) | | Given a java.util.TimeZone, wrap it in the appropriate adapter
subclass of com.ibm.icu.util.TimeZone and return the adapter.
|
Methods inherited from com.ibm.icu.util.TimeZone | public Object clone()(Code)(Java Doc) public static int countEquivalentIDs(String id)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public static String[] getAvailableIDs(int rawOffset)(Code)(Java Doc) public static String[] getAvailableIDs(String country)(Code)(Java Doc) public static String[] getAvailableIDs()(Code)(Java Doc) public int getDSTSavings()(Code)(Java Doc) public static synchronized TimeZone getDefault()(Code)(Java Doc) final public String getDisplayName()(Code)(Java Doc) final public String getDisplayName(Locale locale)(Code)(Java Doc) final public String getDisplayName(ULocale locale)(Code)(Java Doc) final public String getDisplayName(boolean daylight, int style)(Code)(Java Doc) public String getDisplayName(boolean daylight, int style, Locale locale)(Code)(Java Doc) public String getDisplayName(boolean daylight, int style, ULocale locale)(Code)(Java Doc) public static String getEquivalentID(String id, int index)(Code)(Java Doc) public String getID()(Code)(Java Doc) abstract public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)(Code)(Java Doc) public int getOffset(long date)(Code)(Java Doc) public void getOffset(long date, boolean local, int[] offsets)(Code)(Java Doc) abstract public int getRawOffset()(Code)(Java Doc) public static synchronized TimeZone getTimeZone(String ID)(Code)(Java Doc) public boolean hasSameRules(TimeZone other)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) abstract public boolean inDaylightTime(Date date)(Code)(Java Doc) public static synchronized void setDefault(TimeZone tz)(Code)(Java Doc) public void setID(String ID)(Code)(Java Doc) abstract public void setRawOffset(int offsetMillis)(Code)(Java Doc) abstract public boolean useDaylightTime()(Code)(Java Doc)
|
|
|