Package | Description |
---|---|
java.text | |
java.util |
Modifier and Type | Method and Description |
---|---|
TimeZone |
DateFormat.getTimeZone()
Returns the time zone of this date format's calendar.
|
Modifier and Type | Method and Description |
---|---|
void |
DateFormat.setTimeZone(TimeZone timezone)
Sets the time zone of the calendar used by this date format.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleTimeZone |
Modifier and Type | Method and Description |
---|---|
static TimeZone |
TimeZone.getDefault() |
TimeZone |
Calendar.getTimeZone()
Gets the timezone of this Calendar.
|
static TimeZone |
TimeZone.getTimeZone(String rID) |
Modifier and Type | Method and Description |
---|---|
static Calendar |
Calendar.getInstance(TimeZone timezone)
Constructs a new instance of the Calendar subclass appropriate for the
default Locale, using the specified TimeZone.
|
static Calendar |
Calendar.getInstance(TimeZone timezone,
Locale locale)
Constructs a new instance of the Calendar subclass appropriate for the
specified Locale.
|
boolean |
SimpleTimeZone.hasSameRules(TimeZone other) |
boolean |
TimeZone.hasSameRules(TimeZone tz) |
static void |
TimeZone.setDefault(TimeZone tz)
Set the default TimeZone.
|
void |
Calendar.setTimeZone(TimeZone timezone)
Sets the timezone used by this Calendar.
|
Constructor and Description |
---|
Calendar(TimeZone timezone,
Locale locale)
Initializes this Calendar instance using the specified TimeZone and
Locale.
|
GregorianCalendar(TimeZone timezone)
Constructs a new GregorianCalendar initialized to the current date and
time and using the specified TimeZone.
|
GregorianCalendar(TimeZone timezone,
Locale locale)
Constructs a new GregorianCalendar initialized to the current date and
time and using the specified TimeZone and Locale.
|