Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Enums](https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style#enumconstants) \| [Methods](https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style#inhmethods)

# TimeZoneFormat.Style

*** ** * ** ***


`
public
static
final

enum
TimeZoneFormat.Style
`


`


`

`

extends https://developer.android.com/reference/java/lang/Enum<https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style>


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [java.lang.Enum](https://developer.android.com/reference/java/lang/Enum)\<[android.icu.text.TimeZoneFormat.Style](https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style)\> ||
|   | ↳ | android.icu.text.TimeZoneFormat.Style |

<br />

*** ** * ** ***

Time zone display format style enum used by format/parse APIs in `TimeZoneFormat`.
**See also:**

- `https://developer.android.com/reference/android/icu/text/TimeZoneFormat#format(android.icu.text.TimeZoneFormat.Style,%20android.icu.util.TimeZone,%20long)`
- `https://developer.android.com/reference/android/icu/text/TimeZoneFormat#format(android.icu.text.TimeZoneFormat.Style,%20android.icu.util.TimeZone,%20long,%20android.icu.util.Output<android.icu.text.TimeZoneFormat.TimeType>)`
- `https://developer.android.com/reference/android/icu/text/TimeZoneFormat#parse(android.icu.text.TimeZoneFormat.Style,%20java.lang.String,%20java.text.ParsePosition,%20android.icu.util.Output<android.icu.text.TimeZoneFormat.TimeType>)`

## Summary

| ### Enum values ||
|---|---|
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `EXEMPLAR_LOCATION` Exemplar location, such as "Los Angeles" and "Paris". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `GENERIC_LOCATION` Generic location format, such as "United States Time (New York)" and "Italy Time". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `GENERIC_LONG` Generic long non-location format, such as "Eastern Time". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `GENERIC_SHORT` Generic short non-location format, such as "ET". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_FIXED` Fixed width ISO 8601 local time difference (basic format) or the UTC indicator. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_FULL` ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_LOCAL_FIXED` Fixed width ISO 8601 local time difference (basic format). |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_LOCAL_FULL` ISO 8601 local time difference (basic format) with optional seconds field. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_LOCAL_SHORT` Short ISO 8601 locale time difference (basic format). |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_BASIC_SHORT` Short ISO 8601 local time difference (basic format) or the UTC indicator. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_EXTENDED_FIXED` Fixed width ISO 8601 local time difference (extended format) or the UTC indicator. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_EXTENDED_FULL` ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_EXTENDED_LOCAL_FIXED` Fixed width ISO 8601 local time difference (extended format). |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ISO_EXTENDED_LOCAL_FULL` ISO 8601 local time difference (extended format) with optional seconds field. |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `LOCALIZED_GMT` Localized GMT offset format, such as "GMT-05:00", "UTC+0100" This style is equivalent to the LDML date format pattern "OOOO" and "ZZZZ" |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `LOCALIZED_GMT_SHORT` Short localized GMT offset format, such as "GMT-5", "UTC+1:30" This style is equivalent to the LDML date format pattern "O". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `SPECIFIC_LONG` Specific long format, such as "Eastern Standard Time". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `SPECIFIC_SHORT` Specific short format, such as "EST", "PDT". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ZONE_ID` Time Zone ID, such as "America/Los_Angeles". |
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | `ZONE_ID_SHORT` Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax". |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | ` https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style#valueOf(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` |
| ` static final https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | ` https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style#values()() ` |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Enum ` |---|---| | ` final https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Enum#clone()() ` Throws CloneNotSupportedException. | | ` final int` | ` https://developer.android.com/reference/java/lang/Enum#compareTo(E)(https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style o) ` Compares this enum with the specified object for order. | | ` final boolean` | ` https://developer.android.com/reference/java/lang/Enum#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object other) ` Returns true if the specified object is equal to this enum constant. | | ` final void` | ` https://developer.android.com/reference/java/lang/Enum#finalize()() ` enum classes cannot have finalize methods. | | ` final https://developer.android.com/reference/java/lang/Class<https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style>` | ` https://developer.android.com/reference/java/lang/Enum#getDeclaringClass()() ` Returns the Class object corresponding to this enum constant's enum type. | | ` final int` | ` https://developer.android.com/reference/java/lang/Enum#hashCode()() ` Returns a hash code for this enum constant. | | ` final https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Enum#name()() ` Returns the name of this enum constant, exactly as declared in its enum declaration. | | ` final int` | ` https://developer.android.com/reference/java/lang/Enum#ordinal()() ` Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero). | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Enum#toString()() ` Returns the name of this enum constant, as contained in the declaration. | | ` static <T extends https://developer.android.com/reference/java/lang/Enum<T>> T` | ` https://developer.android.com/reference/java/lang/Enum#valueOf(java.lang.Class<T>,%20java.lang.String)(https://developer.android.com/reference/java/lang/Class<T> enumClass, https://developer.android.com/reference/java/lang/String name) ` Returns the enum constant of the specified enum class with the specified name. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||
| From interface ` https://developer.android.com/reference/java/lang/Comparable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/java/lang/Comparable#compareTo(T)(https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style o) ` Compares this object with the specified object for order. | ||

## Enum values

### EXEMPLAR_LOCATION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style EXEMPLAR_LOCATION
```

Exemplar location, such as "Los Angeles" and "Paris".

<br />

### GENERIC_LOCATION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style GENERIC_LOCATION
```

Generic location format, such as "United States Time (New York)" and "Italy Time".
This style is equivalent to the LDML date format pattern "VVVV".

<br />

### GENERIC_LONG

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style GENERIC_LONG
```

Generic long non-location format, such as "Eastern Time".
This style is equivalent to the LDML date format pattern "vvvv".

<br />

### GENERIC_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style GENERIC_SHORT
```

Generic short non-location format, such as "ET".
This style is equivalent to the LDML date format pattern "v".

<br />

### ISO_BASIC_FIXED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_FIXED
```

Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.
For example, "-0500", "+0530", and "Z"(UTC).
This style is equivalent to the LDML date format pattern "XX".

<br />

### ISO_BASIC_FULL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_FULL
```

ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator.
For example, "-0500", "+052538", and "Z"(UTC).
This style is equivalent to the LDML date format pattern "XXXX".

<br />

### ISO_BASIC_LOCAL_FIXED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FIXED
```

Fixed width ISO 8601 local time difference (basic format).
For example, "-0500" and "+0530".
This style is equivalent to the LDML date format pattern "xx".

<br />

### ISO_BASIC_LOCAL_FULL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FULL
```

ISO 8601 local time difference (basic format) with optional seconds field.
For example, "-0500" and "+052538".
This style is equivalent to the LDML date format pattern "xxxx".

<br />

### ISO_BASIC_LOCAL_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_SHORT
```

Short ISO 8601 locale time difference (basic format).
For example, "-05" and "+0530".
This style is equivalent to the LDML date format pattern "x".

<br />

### ISO_BASIC_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_BASIC_SHORT
```

Short ISO 8601 local time difference (basic format) or the UTC indicator.
For example, "-05", "+0530", and "Z"(UTC).
This style is equivalent to the LDML date format pattern "X".

<br />

### ISO_EXTENDED_FIXED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_EXTENDED_FIXED
```

Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.
For example, "-05:00", "+05:30", and "Z"(UTC).
This style is equivalent to the LDML date format pattern "XXX".

<br />

### ISO_EXTENDED_FULL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_EXTENDED_FULL
```

ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator.
For example, "-05:00", "+05:25:38", and "Z"(UTC).
This style is equivalent to the LDML date format pattern "XXXXX".

<br />

### ISO_EXTENDED_LOCAL_FIXED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FIXED
```

Fixed width ISO 8601 local time difference (extended format).
For example, "-05:00" and "+05:30".
This style is equivalent to the LDML date format pattern "xxx" and "ZZZZZ".

<br />

### ISO_EXTENDED_LOCAL_FULL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FULL
```

ISO 8601 local time difference (extended format) with optional seconds field.
For example, "-05:00" and "+05:25:38".
This style is equivalent to the LDML date format pattern "xxxxx".

<br />

### LOCALIZED_GMT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style LOCALIZED_GMT
```

Localized GMT offset format, such as "GMT-05:00", "UTC+0100"
This style is equivalent to the LDML date format pattern "OOOO" and "ZZZZ"

<br />

### LOCALIZED_GMT_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style LOCALIZED_GMT_SHORT
```

Short localized GMT offset format, such as "GMT-5", "UTC+1:30"
This style is equivalent to the LDML date format pattern "O".

<br />

### SPECIFIC_LONG

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style SPECIFIC_LONG
```

Specific long format, such as "Eastern Standard Time".
This style is equivalent to the LDML date format pattern "zzzz".

<br />

### SPECIFIC_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style SPECIFIC_SHORT
```

Specific short format, such as "EST", "PDT".
This style is equivalent to the LDML date format pattern "z".

<br />

### ZONE_ID

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ZONE_ID
```

Time Zone ID, such as "America/Los_Angeles".

<br />

### ZONE_ID_SHORT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final TimeZoneFormat.Style ZONE_ID_SHORT
```

Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax".

<br />

## Public methods

### valueOf

```
public static TimeZoneFormat.Style valueOf (String name)
```

<br />

<br />

| Parameters ||
|---|---|
| `name` | `String` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | <br /> |

### values

```
public static final Style[] values ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style` | <br /> |