|
Final | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use TimeZone | |
|---|---|
| java.text | |
| java.util | |
| Uses of TimeZone in java.text |
|---|
| Methods in java.text that return TimeZone | |
TimeZone |
DateFormat.getTimeZone()
Answers the TimeZone of the Calendar used by this DateFormat. |
| Methods in java.text with parameters of type TimeZone | |
void |
DateFormat.setTimeZone(TimeZone timezone)
Sets the TimeZone of the Calendar used by this DateFormat. |
| Uses of TimeZone in java.util |
|---|
| Subclasses of TimeZone in java.util | |
class |
SimpleTimeZone
SimpleTimeZone represents a local time zone and its daylight savings time rules for the gregorian calendar. |
| Methods in java.util that return TimeZone | |
static TimeZone |
TimeZone.getDefault()
Gets the default time zone. |
static TimeZone |
TimeZone.getTimeZone(String name)
Gets the time zone with the specified ID. |
TimeZone |
Calendar.getTimeZone()
Gets the timezone of this Calendar. |
| Methods in java.util with parameters of type TimeZone | |
boolean |
TimeZone.hasSameRules(TimeZone zone)
Answers if the specified TimeZone has the same raw offset as this TimeZone. |
static void |
TimeZone.setDefault(TimeZone timezone)
Sets the default time zone. |
boolean |
SimpleTimeZone.hasSameRules(TimeZone zone)
Answers if the specified TimeZone has the same raw offset and daylight savings time rules as this SimpleTimeZone. |
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. |
void |
Calendar.setTimeZone(TimeZone timezone)
Sets the timezone used by this Calendar. |
| Constructors in java.util with parameters of type TimeZone | |
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. |
|
Calendar(TimeZone timezone,
Locale locale)
Initializes this Calendar instance using the specified TimeZone and Locale. |
|
|
Final | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||