| Package | Description |
|---|---|
| java.text | |
| java.util |
Back 2 Browser Bytecode Translator
Copyright (C) 2012 Jaroslav Tulach
|
| Modifier and Type | Method and Description |
|---|---|
TimeZone |
DateFormat.getTimeZone()
Gets the time zone.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DateFormat.setTimeZone(TimeZone zone)
Sets the time zone for the calendar of this
DateFormat object. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleTimeZone
SimpleTimeZone is a concrete subclass of TimeZone
that represents a time zone for use with a Gregorian calendar. |
| 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.
|
static Calendar |
Calendar.getInstance(TimeZone zone,
Locale aLocale)
Gets a calendar with the specified time zone and locale.
|
boolean |
TimeZone.hasSameRules(TimeZone other)
Returns true if this zone has the same rule and offset as another zone.
|
boolean |
SimpleTimeZone.hasSameRules(TimeZone other)
Returns
true if this zone has the same rules and offset as another zone. |
static void |
TimeZone.setDefault(TimeZone zone)
Sets the
TimeZone that is
returned by the getDefault method. |
void |
Calendar.setTimeZone(TimeZone value)
Sets the time zone with the given time zone value.
|
| Constructor and Description |
|---|
Calendar(TimeZone zone,
Locale aLocale)
Constructs a calendar with the specified time zone and locale.
|
Copyright © 2016 API Design. All Rights Reserved.