| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Method and Description |
|---|---|
static TimeZone |
TimeZone.getDefault()
Gets the default
TimeZone for this host. |
TimeZone |
Calendar.getTimeZone()
Gets the time zone.
|
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the
TimeZone for the given ID. |
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
Calendar.getInstance(TimeZone zone)
Gets a calendar using the specified time zone and default locale.
|
boolean |
TimeZone.hasSameRules(TimeZone other)
Returns true if this zone has the same rule and offset as another zone.
|
void |
Calendar.setTimeZone(TimeZone value)
Sets the time zone with the given time zone value.
|