Serializable, Comparable<TimeZoneFormat.Style>public static enum TimeZoneFormat.Style extends Enum<TimeZoneFormat.Style>
TimeZoneFormat.| 枚举常量 | 说明 |
|---|---|
EXEMPLAR_LOCATION |
Exemplar location, such as "Los Angeles" and "Paris".
|
GENERIC_LOCATION |
Generic location format, such as "United States Time (New York)" and "Italy Time".
|
GENERIC_LONG |
Generic long non-location format, such as "Eastern Time".
|
GENERIC_SHORT |
Generic short non-location format, such as "ET".
|
ISO_BASIC_FIXED |
Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.
|
ISO_BASIC_FULL |
ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator.
|
ISO_BASIC_LOCAL_FIXED |
Fixed width ISO 8601 local time difference (basic format).
|
ISO_BASIC_LOCAL_FULL |
ISO 8601 local time difference (basic format) with optional seconds field.
|
ISO_BASIC_LOCAL_SHORT |
Short ISO 8601 locale time difference (basic format).
|
ISO_BASIC_SHORT |
Short ISO 8601 local time difference (basic format) or the UTC indicator.
|
ISO_EXTENDED_FIXED |
Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.
|
ISO_EXTENDED_FULL |
ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator.
|
ISO_EXTENDED_LOCAL_FIXED |
Fixed width ISO 8601 local time difference (extended format).
|
ISO_EXTENDED_LOCAL_FULL |
ISO 8601 local time difference (extended format) with optional seconds field.
|
LOCALIZED_GMT |
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 |
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 |
Specific long format, such as "Eastern Standard Time".
|
SPECIFIC_SHORT |
Specific short format, such as "EST", "PDT".
|
ZONE_ID |
Time Zone ID, such as "America/Los_Angeles".
|
ZONE_ID_SHORT |
Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax".
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static TimeZoneFormat.Style |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static TimeZoneFormat.Style[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (TimeZoneFormat.Style c : TimeZoneFormat.Style.values()) System.out.println(c); |
public static final TimeZoneFormat.Style GENERIC_LOCATION
public static final TimeZoneFormat.Style GENERIC_LONG
public static final TimeZoneFormat.Style GENERIC_SHORT
public static final TimeZoneFormat.Style SPECIFIC_LONG
public static final TimeZoneFormat.Style SPECIFIC_SHORT
public static final TimeZoneFormat.Style LOCALIZED_GMT
public static final TimeZoneFormat.Style LOCALIZED_GMT_SHORT
public static final TimeZoneFormat.Style ISO_BASIC_SHORT
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_SHORT
public static final TimeZoneFormat.Style ISO_BASIC_FIXED
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FIXED
public static final TimeZoneFormat.Style ISO_BASIC_FULL
public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FULL
public static final TimeZoneFormat.Style ISO_EXTENDED_FIXED
public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FIXED
public static final TimeZoneFormat.Style ISO_EXTENDED_FULL
public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FULL
public static final TimeZoneFormat.Style ZONE_ID
public static final TimeZoneFormat.Style ZONE_ID_SHORT
public static final TimeZoneFormat.Style EXEMPLAR_LOCATION
public static TimeZoneFormat.Style[] values()
for (TimeZoneFormat.Style c : TimeZoneFormat.Style.values()) System.out.println(c);
public static TimeZoneFormat.Style valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值