Uses of Class
java.util.TimeZone
| Package | Description |
|---|---|
| java.text | |
| java.util | |
| javax.xml.datatype | |
| libcore.icu | |
| libcore.util | |
| org.apache.http.impl.cookie | |
| org.apache.http.protocol |
HTTP protocol execution framework.
|
-
Uses of TimeZone in java.text
Methods in java.text that return TimeZone Modifier and Type Method Description TimeZoneDateFormat. getTimeZone()Returns the time zone of this date format's calendar.Methods in java.text with parameters of type TimeZone Modifier and Type Method Description voidDateFormat. setTimeZone(TimeZone timezone)Sets the time zone of the calendar used by this date format. -
Uses of TimeZone in java.util
Subclasses of TimeZone in java.util Modifier and Type Class Description classSimpleTimeZoneSimpleTimeZoneis a concrete subclass ofTimeZonethat represents a time zone for use with a Gregorian calendar.Methods in java.util that return TimeZone Modifier and Type Method Description static TimeZoneTimeZone. getDefault()Returns the user's preferred time zone.TimeZoneCalendar. getTimeZone()Returns the time zone used by thisCalendar.static TimeZoneTimeZone. getTimeZone(String id)Returns aTimeZonecorresponding to the givenid, orGMTfor unknown ids.Methods in java.util with parameters of type TimeZone Modifier and Type Method Description static CalendarCalendar. getInstance(TimeZone timezone)Constructs a new instance of theCalendarsubclass appropriate for the defaultLocaleand givenTimeZone, set to the current date and time.static CalendarCalendar. getInstance(TimeZone timezone, Locale locale)Constructs a new instance of theCalendarsubclass appropriate for the givenLocaleand givenTimeZone, set to the current date and time.booleanSimpleTimeZone. hasSameRules(TimeZone zone)booleanTimeZone. hasSameRules(TimeZone timeZone)Returns true iftimeZonehas the same rules as this time zone.static voidTimeZone. setDefault(TimeZone timeZone)Overrides the default time zone for the current process only.voidCalendar. setTimeZone(TimeZone timezone)Sets theTimeZoneused by this Calendar.Constructors in java.util with parameters of type TimeZone Constructor Description Calendar(TimeZone timezone, Locale locale)Constructs aCalendarinstance using the givenTimeZoneandLocale.GregorianCalendar(TimeZone timezone)Constructs a newGregorianCalendarinitialized to the current date and time and using the specifiedTimeZoneand the defaultLocale.GregorianCalendar(TimeZone timezone, Locale locale)Constructs a newGregorianCalendarinitialized to the current date and time and using the specifiedTimeZoneandLocale. -
Uses of TimeZone in javax.xml.datatype
Methods in javax.xml.datatype that return TimeZone Modifier and Type Method Description abstract TimeZoneXMLGregorianCalendar. getTimeZone(int defaultZoneoffset)Returns ajava.util.TimeZonefor this class.Methods in javax.xml.datatype with parameters of type TimeZone Modifier and Type Method Description abstract GregorianCalendarXMLGregorianCalendar. toGregorianCalendar(TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults)Convert thisXMLGregorianCalendaralong with provided parameters to aGregorianCalendarinstance. -
Uses of TimeZone in libcore.icu
Methods in libcore.icu with parameters of type TimeZone Modifier and Type Method Description static StringDateIntervalFormat. formatDateRange(Locale locale, TimeZone tz, long startMs, long endMs, int flags) -
Uses of TimeZone in libcore.util
Subclasses of TimeZone in libcore.util Modifier and Type Class Description classZoneInfoOur concrete TimeZone implementation, backed by zoneinfo data.Methods in libcore.util that return TimeZone Modifier and Type Method Description static TimeZoneZoneInfo. makeTimeZone(String id, BufferIterator it)abstract TimeZoneZoneInfoDB.TzData. makeTimeZone(String id)TimeZoneZoneInfoDB.TzDataAndroid. makeTimeZone(String id)Methods in libcore.util with parameters of type TimeZone Modifier and Type Method Description booleanZoneInfo. hasSameRules(TimeZone timeZone) -
Uses of TimeZone in org.apache.http.impl.cookie
Fields in org.apache.http.impl.cookie declared as TimeZone Modifier and Type Field Description static TimeZoneDateUtils. GMT -
Uses of TimeZone in org.apache.http.protocol
Fields in org.apache.http.protocol declared as TimeZone Modifier and Type Field Description static TimeZoneHttpDateGenerator. GMTThe time zone to use in the date header.