Stay organized with collections
Save and categorize content based on your preferences.
ParseOption
class ParseOption
Parse option enum, used for specifying optional parse behavior.
Summary
Enum values |
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.
|
When parsing a time zone display name in Style.SPECIFIC_SHORT , look for the IANA tz database compatible zone abbreviations in addition to the localized names coming from the TimeZoneNames currently used by the TimeZoneFormat .
|
Enum values
ALL_STYLES
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TimeZoneFormat.ParseOption\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nParseOption\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/TimeZoneFormat.ParseOption \"View this page in Java\") \n\n```\nclass ParseOption\n```\n\n|---|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.TimeZoneFormat.ParseOption](#)\\\u003e ||\n| | ↳ | [android.icu.text.TimeZoneFormat.ParseOption](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [TimeZoneFormat.ParseOption.ALL_STYLES](#ENUM_VALUE:ALL_STYLES), [TimeZoneFormat.ParseOption.TZ_DATABASE_ABBREVIATIONS](#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) |-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [TimeZoneFormat.ParseOption.ALL_STYLES](#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](#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) | When parsing a time zone display name in [Style.SPECIFIC_SHORT](/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](/reference/kotlin/android/icu/text/TimeZoneNames) currently used by the [TimeZoneFormat](/reference/kotlin/android/icu/text/TimeZoneFormat). | |\n\nParse option enum, used for specifying optional parse behavior.\n\nSummary\n-------\n\n| Enum values ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ALL_STYLES](#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. |\n| [TZ_DATABASE_ABBREVIATIONS](#ENUM_VALUE:TZ_DATABASE_ABBREVIATIONS) When parsing a time zone display name in [Style.SPECIFIC_SHORT](/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](/reference/kotlin/android/icu/text/TimeZoneNames) currently used by the [TimeZoneFormat](/reference/kotlin/android/icu/text/TimeZoneFormat). |\n\nEnum values\n-----------\n\n### ALL_STYLES\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ALL_STYLES : TimeZoneFormat.ParseOption\n```\n\nWhen 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. \n\n### TZ_DATABASE_ABBREVIATIONS\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val TZ_DATABASE_ABBREVIATIONS : TimeZoneFormat.ParseOption\n```\n\nWhen parsing a time zone display name in [Style.SPECIFIC_SHORT](/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](/reference/kotlin/android/icu/text/TimeZoneNames) currently used by the [TimeZoneFormat](/reference/kotlin/android/icu/text/TimeZoneFormat)."]]