# TimeZoneFormat.ParseOption

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

# ParseOption

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/TimeZoneFormat.ParseOption "View this page in Java")  

```
class ParseOption
```

|---|---|--------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.icu.text.TimeZoneFormat.ParseOption](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#)\> ||
|   | ↳ | [android.icu.text.TimeZoneFormat.ParseOption](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [TimeZoneFormat.ParseOption.ALL_STYLES](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:ALL_STYLES),[TimeZoneFormat.ParseOption.TZ_DATABASE_ABBREVIATIONS](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [TimeZoneFormat.ParseOption.ALL_STYLES](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:ALL_STYLES)                               | When a time zone display name is not found within a set of display names used for the specified style, look for the name from display names used by other styles.                                                                                                                                                                                                                                                                                                                        | | [TimeZoneFormat.ParseOption.TZ_DATABASE_ABBREVIATIONS](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) | When parsing a time zone display name in[Style.SPECIFIC_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.Style), look for the IANA tz database compatible zone abbreviations in addition to the localized names coming from the[TimeZoneNames](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneNames)currently used by the[TimeZoneFormat](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat). | |

Parse option enum, used for specifying optional parse behavior.

## Summary

|                                                                                                                                                                                                                                                                                                                       Enum values                                                                                                                                                                                                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ALL_STYLES](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:ALL_STYLES) When a time zone display name is not found within a set of display names used for the specified style, look for the name from display names used by other styles.                                                                                                                                                                                                                                                                                                                                                      |
| [TZ_DATABASE_ABBREVIATIONS](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.ParseOption#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) When parsing a time zone display name in[Style.SPECIFIC_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.Style), look for the IANA tz database compatible zone abbreviations in addition to the localized names coming from the[TimeZoneNames](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneNames)currently used by the[TimeZoneFormat](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat). |

## Enum values

### ALL_STYLES

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

```
enum val ALL_STYLES : TimeZoneFormat.ParseOption
```

When a time zone display name is not found within a set of display names used for the specified style, look for the name from display names used by other styles.  

### TZ_DATABASE_ABBREVIATIONS

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

```
enum val TZ_DATABASE_ABBREVIATIONS : TimeZoneFormat.ParseOption
```

When parsing a time zone display name in[Style.SPECIFIC_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat.Style), look for the IANA tz database compatible zone abbreviations in addition to the localized names coming from the[TimeZoneNames](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneNames)currently used by the[TimeZoneFormat](https://developer.android.com/reference/kotlin/android/icu/text/TimeZoneFormat).