public abstract class TimeZone extends Object
Constructor and Description |
---|
TimeZone() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getAvailableIDs()
Gets all the available IDs supported.
|
static TimeZone |
getDefault()
Gets the default TimeZone for this host.
|
String |
getID()
Gets the ID of this time zone.
|
abstract int |
getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
Gets offset, for current date, modified in case of daylight savings.
|
abstract int |
getRawOffset()
Gets the GMT offset for this time zone.
|
static TimeZone |
getTimeZone(String ID)
Gets the TimeZone for the given ID.
|
abstract boolean |
useDaylightTime()
Queries if this time zone uses Daylight Savings Time.
|
public static String[] getAvailableIDs()
public static TimeZone getDefault()
public String getID()
public abstract int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
public abstract int getRawOffset()
public abstract boolean useDaylightTime()