Example usage for Java java.util TimeZone fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SHORT A style specifier for getDisplayName() indicating a short name, such as "PST." |
int | LONG A style specifier for getDisplayName() indicating a long name, such as "Pacific Standard Time." |
Object | clone() Creates a copy of this TimeZone . |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
String[] | getAvailableIDs() Gets all the available IDs supported. |
String[] | getAvailableIDs(int rawOffset) Gets the available IDs according to the given time zone offset in milliseconds. |
TimeZone | getDefault() Gets the default TimeZone of the Java virtual machine. |
String | getDisplayName() Returns a long standard time name of this TimeZone suitable for presentation to the user in the default locale. |
String | getDisplayName(boolean daylight, int style) Returns a name in the specified style of this TimeZone suitable for presentation to the user in the default locale. |
String | getDisplayName(boolean daylight, int style, Locale locale) Returns a name in the specified style of this TimeZone suitable for presentation to the user in the specified locale . |
String | getDisplayName(Locale locale) Returns a long standard time name of this TimeZone suitable for presentation to the user in the specified locale . |
int | getDSTSavings() Returns the amount of time to be added to local standard time to get local wall clock time. |
String | getID() Gets the ID of this time zone. |
int | getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) Gets the time zone offset, for current date, modified in case of daylight savings. |
int | getOffset(long date) Returns the offset of this time zone from UTC at the specified date. |
int | getRawOffset() Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. |
TimeZone | getTimeZone(String ID) Gets the TimeZone for the given ID. |
TimeZone | getTimeZone(ZoneId zoneId) Gets the TimeZone for the given zoneId . |
boolean | hasSameRules(TimeZone other) Returns true if this zone has the same rule and offset as another zone. |
boolean | inDaylightTime(Date date) Queries if the given date is in Daylight Saving Time in this time zone. |
boolean | observesDaylightTime() Returns true if this TimeZone is currently in Daylight Saving Time, or if a transition from Standard Time to Daylight Saving Time occurs at any future time. |
void | setDefault(TimeZone zone) Sets the TimeZone that is returned by the getDefault method. |
void | setID(String ID) Sets the time zone ID. |
void | setRawOffset(int offsetMillis) Sets the base time zone offset to GMT. |
ZoneId | toZoneId() Converts this TimeZone object to a ZoneId . |
boolean | useDaylightTime() Queries if this TimeZone uses Daylight Saving Time. |