|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||
Uses of Class
java.util.TimeZone
| Uses of TimeZone in java.util |
| Subclasses of TimeZone in java.util | |
class |
SimpleTimeZone
This class represents a simple time zone offset and handles daylight savings. |
| Fields in java.util declared as TimeZone | |
private static TimeZone |
TimeZone.defaultZone0
The default time zone, as returned by getDefault. |
private TimeZone |
Calendar.zone
The time zone of this calendar. |
| Methods in java.util that return TimeZone | |
(package private) static TimeZone |
VMTimeZone.getDefaultTimeZoneId()
This method returns a time zone id string which is in the form (standard zone name) or (standard zone name)(GMT offset) or (standard zone name)(GMT offset)(daylight time zone name). |
private static TimeZone |
TimeZone.defaultZone()
Tries to get the default TimeZone for this system if not already set. |
(package private) static TimeZone |
TimeZone.getDefaultTimeZone(java.lang.String sysTimeZoneId)
Maps a time zone name (with optional GMT offset and daylight time zone name) to one of the known time zones. |
static TimeZone |
TimeZone.getTimeZone(java.lang.String ID)
Gets the TimeZone for the given ID. |
static TimeZone |
TimeZone.getDefault()
Returns the time zone under which the host is running. |
TimeZone |
Calendar.getTimeZone()
Gets the time zone of this calendar |
| Methods in java.util with parameters of type TimeZone | |
static void |
TimeZone.setDefault(TimeZone zone)
|
boolean |
TimeZone.hasSameRules(TimeZone other)
Test if the other time zone uses the same rule and only possibly differs in ID. |
static Calendar |
Calendar.getInstance(TimeZone zone)
Creates a calendar representing the actual time, using the given time zone and the default locale. |
static Calendar |
Calendar.getInstance(TimeZone zone,
Locale locale)
Creates a calendar representing the actual time, using the given time zone and locale. |
void |
Calendar.setTimeZone(TimeZone zone)
Sets the time zone to the specified value. |
boolean |
SimpleTimeZone.hasSameRules(TimeZone other)
Test if the other time zone uses the same rule and only possibly differs in ID. |
| Constructors in java.util with parameters of type TimeZone | |
Calendar(TimeZone zone,
Locale locale)
Constructs a new Calendar with the given time zone and the given locale. |
|
GregorianCalendar(TimeZone zone)
Constructs a new GregorianCalender representing the current time, using the specified time zone and the default locale. |
|
GregorianCalendar(TimeZone zone,
Locale locale)
Constructs a new GregorianCalender representing the current time with the given time zone and the given locale. |
|
GregorianCalendar(TimeZone zone,
Locale locale,
boolean unused)
Common constructor that all constructors should call. |
|
|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||