Enum TimeZone

    • Enum Constant Detail

      • GreenwichMeanTime

        public static final TimeZone GreenwichMeanTime
      • EuropeanCentralTime

        public static final TimeZone EuropeanCentralTime
      • EasternEuropeanTime

        public static final TimeZone EasternEuropeanTime
      • EasternAfricanTime

        public static final TimeZone EasternAfricanTime
      • MiddleEastTime

        public static final TimeZone MiddleEastTime
      • NearEastTime

        public static final TimeZone NearEastTime
      • PakistanLahoreTime

        public static final TimeZone PakistanLahoreTime
      • IndiaStandardTime

        public static final TimeZone IndiaStandardTime
      • BangladeshStandardTime

        public static final TimeZone BangladeshStandardTime
      • VietnamStandardTime

        public static final TimeZone VietnamStandardTime
      • ChinaTaiwanTime

        public static final TimeZone ChinaTaiwanTime
      • JapanStandardTime

        public static final TimeZone JapanStandardTime
      • AustraliaCentralTime

        public static final TimeZone AustraliaCentralTime
      • AustraliaEasternTime

        public static final TimeZone AustraliaEasternTime
      • SolomonStandardTime

        public static final TimeZone SolomonStandardTime
      • NewZealandStandardTime

        public static final TimeZone NewZealandStandardTime
      • MidwayIslandsTime

        public static final TimeZone MidwayIslandsTime
      • HawaiiStandardTime

        public static final TimeZone HawaiiStandardTime
      • AlaskaStandardTime

        public static final TimeZone AlaskaStandardTime
      • PacificStandardTime

        public static final TimeZone PacificStandardTime
      • MountainStandardTime

        public static final TimeZone MountainStandardTime
      • CentralStandardTime

        public static final TimeZone CentralStandardTime
      • EasternStandardTime

        public static final TimeZone EasternStandardTime
      • PuertoRicoAndUsVirginIslandsTime

        public static final TimeZone PuertoRicoAndUsVirginIslandsTime
      • CanadaNewfoundlandTime

        public static final TimeZone CanadaNewfoundlandTime
      • ArgentinaStandardTime

        public static final TimeZone ArgentinaStandardTime
      • MidAtlanticTime

        public static final TimeZone MidAtlanticTime
      • CentralAfricanTime

        public static final TimeZone CentralAfricanTime
    • Method Detail

      • values

        public static TimeZone[] 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 (TimeZone c : TimeZone.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TimeZone valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null