Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.util.TimeZone

Packages that use TimeZone
java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).

Uses of TimeZone in java.text

Methods in java.text that return TimeZone
`TimeZone` | `DateFormat.getTimeZone()` Gets the time zone.

Methods in java.text with parameters of type TimeZone
`void` | `DateFormat.setTimeZone(TimeZone zone)` Sets the time zone for the calendar of this DateFormat object.

Uses of TimeZone in java.util

Subclasses of TimeZone in java.util
`class` | `SimpleTimeZone` `SimpleTimeZone` is a concrete subclass of `TimeZone` that represents a time zone for use with a Gregorian calendar.

Methods in java.util that return TimeZone
`static TimeZone` | `TimeZone.getTimeZone(String ID)` Gets the `TimeZone` for the given ID.
`static TimeZone` | `TimeZone.getDefault()` Gets the default `TimeZone` for this host.
`TimeZone` | `Calendar.getTimeZone()` Gets the time zone.

Methods in java.util with parameters of type TimeZone
`static void` | `TimeZone.setDefault(TimeZone zone)` Sets the `TimeZone` that is returned by the `getDefault` method.
`boolean` | `TimeZone.hasSameRules(TimeZone other)` Returns true if this zone has the same rule and offset as another zone.
`boolean` | `SimpleTimeZone.hasSameRules(TimeZone other)` Return true if this zone has the same rules and offset as another zone.
`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.
`void` | `Calendar.setTimeZone(TimeZone value)` Sets the time zone with the given time zone value.

Constructors in java.util with parameters of type TimeZone
`Calendar(TimeZone zone, Locale aLocale)` Constructs a calendar with the specified time zone and locale.
`GregorianCalendar(TimeZone zone)` Constructs a GregorianCalendar based on the current time in the given time zone with the default locale.
`GregorianCalendar(TimeZone zone, Locale aLocale)` Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.