public class TimeZone extends Object implements Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static String[] |
getAvailableIDs() |
static String[] |
getAvailableIDs(int rawOffset) |
static TimeZone |
getDefault() |
String |
getDisplayName() |
String |
getDisplayName(boolean daylight,
int style) |
String |
getDisplayName(boolean daylight,
int style,
Locale locale) |
String |
getDisplayName(Locale locale) |
int |
getDSTSavings() |
String |
getID() |
int |
getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int milliseconds) |
int |
getOffset(long date) |
int |
getRawOffset() |
static TimeZone |
getTimeZone(String ID) |
boolean |
inDaylightTime(Date date) |
boolean |
observesDaylightTime() |
static void |
setDefault(TimeZone tz) |
void |
setID(String ID) |
void |
setRawOffset(int offsetMillis) |
boolean |
useDaylightTime() |
public static final int SHORT
public static final int LONG
public TimeZone(String ID)
public static TimeZone getDefault()
public static void setDefault(TimeZone tz)
public static String[] getAvailableIDs()
public static String[] getAvailableIDs(int rawOffset)
public void setID(String ID)
public String getID()
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)
public int getOffset(long date)
public int getRawOffset()
public void setRawOffset(int offsetMillis)
public boolean inDaylightTime(Date date)
public boolean useDaylightTime()
public boolean observesDaylightTime()
public int getDSTSavings()
public String getDisplayName()
public String getDisplayName(boolean daylight, int style)