Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

TimeZoneFormat.ParseOption

public static final enum TimeZoneFormat.ParseOption
extends Enum<TimeZoneFormat.ParseOption>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.TimeZoneFormat.ParseOption>
     ↳ android.icu.text.TimeZoneFormat.ParseOption


Parse option enum, used for specifying optional parse behavior.

Summary

Enum values

TimeZoneFormat.ParseOption  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

When parsing a time zone display name in TimeZoneFormat.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

Public methods

static TimeZoneFormat.ParseOption valueOf(String name)
static final ParseOption[] values()

Inherited methods

Enum values

ALL_STYLES

added in API level 24
public static final TimeZoneFormat.ParseOption 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

added in API level 24
public static final TimeZoneFormat.ParseOption TZ_DATABASE_ABBREVIATIONS

When parsing a time zone display name in TimeZoneFormat.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.

Public methods

valueOf

added in API level 24
public static TimeZoneFormat.ParseOption valueOf (String name)

Parameters
name String

Returns
TimeZoneFormat.ParseOption

values

added in API level 24
public static final ParseOption[] values ()

Returns
ParseOption[]