Added in API level 24

Style


class Style
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.TimeZoneFormat.Style>
   ↳ android.icu.text.TimeZoneFormat.Style

Time zone display format style enum used by format/parse APIs in TimeZoneFormat.

Summary

Enum values

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

Generic location format, such as "United States Time (New York)" and "Italy Time".

Generic long non-location format, such as "Eastern Time".

Generic short non-location format, such as "ET".

Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.

ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator.

Fixed width ISO 8601 local time difference (basic format).

ISO 8601 local time difference (basic format) with optional seconds field.

Short ISO 8601 locale time difference (basic format).

Short ISO 8601 local time difference (basic format) or the UTC indicator.

Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.

ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator.

Fixed width ISO 8601 local time difference (extended format).

ISO 8601 local time difference (extended format) with optional seconds field.

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

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

Specific long format, such as "Eastern Standard Time".

Specific short format, such as "EST", "PDT".

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

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

Enum values

EXEMPLAR_LOCATION

Added in API level 24
enum val EXEMPLAR_LOCATION : TimeZoneFormat.Style

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

GENERIC_LOCATION

Added in API level 24
enum val GENERIC_LOCATION : TimeZoneFormat.Style

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

GENERIC_LONG

Added in API level 24
enum val GENERIC_LONG : TimeZoneFormat.Style

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

GENERIC_SHORT

Added in API level 24
enum val GENERIC_SHORT : TimeZoneFormat.Style

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

ISO_BASIC_FIXED

Added in API level 24
enum val ISO_BASIC_FIXED : TimeZoneFormat.Style

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".

ISO_BASIC_FULL

Added in API level 24
enum val ISO_BASIC_FULL : TimeZoneFormat.Style

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".

ISO_BASIC_LOCAL_FIXED

Added in API level 24
enum val ISO_BASIC_LOCAL_FIXED : TimeZoneFormat.Style

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".

ISO_BASIC_LOCAL_FULL

Added in API level 24
enum val ISO_BASIC_LOCAL_FULL : TimeZoneFormat.Style

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".

ISO_BASIC_LOCAL_SHORT

Added in API level 24
enum val ISO_BASIC_LOCAL_SHORT : TimeZoneFormat.Style

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

ISO_BASIC_SHORT

Added in API level 24
enum val ISO_BASIC_SHORT : TimeZoneFormat.Style

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".

ISO_EXTENDED_FIXED

Added in API level 24
enum val ISO_EXTENDED_FIXED : TimeZoneFormat.Style

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".

ISO_EXTENDED_FULL

Added in API level 24
enum val ISO_EXTENDED_FULL : TimeZoneFormat.Style

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".

ISO_EXTENDED_LOCAL_FIXED

Added in API level 24
enum val ISO_EXTENDED_LOCAL_FIXED : TimeZoneFormat.Style

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".

ISO_EXTENDED_LOCAL_FULL

Added in API level 24
enum val ISO_EXTENDED_LOCAL_FULL : TimeZoneFormat.Style

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".

LOCALIZED_GMT

Added in API level 24
enum val LOCALIZED_GMT : TimeZoneFormat.Style

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

LOCALIZED_GMT_SHORT

Added in API level 24
enum val LOCALIZED_GMT_SHORT : TimeZoneFormat.Style

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

SPECIFIC_LONG

Added in API level 24
enum val SPECIFIC_LONG : TimeZoneFormat.Style

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

SPECIFIC_SHORT

Added in API level 24
enum val SPECIFIC_SHORT : TimeZoneFormat.Style

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

ZONE_ID

Added in API level 24
enum val ZONE_ID : TimeZoneFormat.Style

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

ZONE_ID_SHORT

Added in API level 24
enum val ZONE_ID_SHORT : TimeZoneFormat.Style

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