Added in API level 24

ParseOption

class ParseOption
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.TimeZoneFormat.ParseOption>
   ↳ android.icu.text.TimeZoneFormat.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

Added in API level 24
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
enum val TZ_DATABASE_ABBREVIATIONS : TimeZoneFormat.ParseOption

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.