TimeZoneNameTimeZoneSynopsis
DescriptionThe TimeZone class is an abstract class that represents a time zone offset. In addition, the class incorporates knowledge about daylight savings time. Usually, you get a TimeZone object by calling getDefault(). This method creates a TimeZone that is appropriate for the current locale. You can also call getTimeZone() to obtain a TimeZone object for a specific time zone. Class Summary
public abstract class java.util.TimeZone extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable { // Class Methods public static synchronized String[] getAvailableIDs(); public static synchronized String[] getAvailableIDs(int rawOffset); public static synchronized TimeZone getDefault(); public static synchronized TimeZone getTimeZone(String ID); public static synchronized void setDefault(TimeZone zone); // Instance Methods public Object clone(); public String getID(); public abstract int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds); public abstract int getRawOffset(); public abstract boolean inDaylightTime(Date date); public void setID(String ID); public abstract void setRawOffset(int offsetMillis); public abstract boolean useDaylightTime(); } Class MethodsgetAvailiableIDspublic static synchronized String[] getAvailableIDs()
public static synchronized String[] getAvailableIDs(int rawOffset)
getDefaultpublic static synchronized TimeZone getDefault()
getTimeZonepublic static synchronized TimeZone getTimeZone(String ID)
setDefaultpublic static synchronized void setDefault(TimeZone zone)
Instance Methodsclonepublic Object clone()
getIDpublic String getID()
getOffset
public abstract int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
getRawOffsetpublic abstract int getRawOffset()
inDaylightTimepublic abstract boolean isDaylightTime(Date date)
setIDpublic void setID(String ID)
setRawOffsetpublic abstract void setRawOffset(int offsetMillis)
useDaylightTimepublic abstract boolean useDaylightTime()
Inherited Methods
See AlsoCalendar, Cloneable, GregorianCalendar, Locale, Serializable, SimpleTimeZone | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|