Enum TimeZoneFormat.Style

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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".
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int flag  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Style​(int flag)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TimeZoneFormat.Style valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TimeZoneFormat.Style[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • GENERIC_LOCATION

        public static final TimeZoneFormat.Style GENERIC_LOCATION
        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

        public static final TimeZoneFormat.Style GENERIC_LONG
        Generic long non-location format, such as "Eastern Time". This style is equivalent to the LDML date format pattern "vvvv".
      • GENERIC_SHORT

        public static final TimeZoneFormat.Style GENERIC_SHORT
        Generic short non-location format, such as "ET". This style is equivalent to the LDML date format pattern "v".
      • SPECIFIC_LONG

        public static final TimeZoneFormat.Style SPECIFIC_LONG
        Specific long format, such as "Eastern Standard Time". This style is equivalent to the LDML date format pattern "zzzz".
      • SPECIFIC_SHORT

        public static final TimeZoneFormat.Style SPECIFIC_SHORT
        Specific short format, such as "EST", "PDT". This style is equivalent to the LDML date format pattern "z".
      • LOCALIZED_GMT

        public static final TimeZoneFormat.Style 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

        public static final TimeZoneFormat.Style 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".
      • ISO_BASIC_SHORT

        public static final TimeZoneFormat.Style ISO_BASIC_SHORT
        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_BASIC_LOCAL_SHORT

        public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_SHORT
        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_FIXED

        public static final TimeZoneFormat.Style ISO_BASIC_FIXED
        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_LOCAL_FIXED

        public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FIXED
        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_FULL

        public static final TimeZoneFormat.Style ISO_BASIC_FULL
        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_FULL

        public static final TimeZoneFormat.Style ISO_BASIC_LOCAL_FULL
        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_EXTENDED_FIXED

        public static final TimeZoneFormat.Style ISO_EXTENDED_FIXED
        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_LOCAL_FIXED

        public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FIXED
        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_FULL

        public static final TimeZoneFormat.Style ISO_EXTENDED_FULL
        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_FULL

        public static final TimeZoneFormat.Style ISO_EXTENDED_LOCAL_FULL
        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".
      • ZONE_ID

        public static final TimeZoneFormat.Style ZONE_ID
        Time Zone ID, such as "America/Los_Angeles".
      • ZONE_ID_SHORT

        public static final TimeZoneFormat.Style ZONE_ID_SHORT
        Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax".
      • EXEMPLAR_LOCATION

        public static final TimeZoneFormat.Style EXEMPLAR_LOCATION
        Exemplar location, such as "Los Angeles" and "Paris".
    • Field Detail

      • flag

        final int flag
    • Constructor Detail

      • Style

        private Style​(int flag)
    • Method Detail

      • values

        public static TimeZoneFormat.Style[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TimeZoneFormat.Style c : TimeZoneFormat.Style.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TimeZoneFormat.Style valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null