Enum Class ZoneId

java.lang.Object
java.lang.Enum<ZoneId>
org.miaixz.bus.core.lang.ZoneId
All Implemented Interfaces:
Serializable, Comparable<ZoneId>, Constable

public enum ZoneId extends Enum<ZoneId>
时区计算
Since:
Java 17+
Author:
Kimi Liu
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    "Australia/Darwin","澳洲/达尔文"
    "Australia/Sydney","澳洲/悉尼"
    "America/Argentina/Buenos_Aires","美洲/阿根廷/布宜诺斯艾利斯"
    "Africa/Cairo","非洲/开罗"
    "America/Anchorage","美洲/安克雷奇"
    "America/Sao_Paulo","美洲/圣保罗"
    "Asia/Dhaka","亚洲/达卡"
    "Africa/Harare","非洲/哈拉雷"
    "America/St_Johns","美洲/圣约翰"
    "America/Chicago","美洲/芝加哥"
    "+08:00","Asia/Shanghai", "亚洲/上海"
    "Africa/Addis_Ababa","非洲/亚的斯亚贝巴"
    "Europe/Paris","欧洲/巴黎"
    "-05:00", "EST", "北美东部标准时间"
    "Universal Time","世界时"
    "-10:00", "HST", "夏威夷-阿留申标准时区"
    "America/Indiana/Indianapolis","美洲/印第安纳州/印第安纳波利斯"
    "Asia/Kolkata","亚洲/加尔各答"
    "Asia/Tokyo","亚洲/东京"
    "Pacific/Apia","太平洋/阿皮亚"
    "-07:00", "MDT","北美山地标准时间"
    "Asia/Yerevan","亚洲/埃里温"
    "Pacific/Auckland","太平洋/奥克兰"
    "Asia/Karachi","亚洲/卡拉奇"
    "America/Phoenix","美洲/凤凰城"
    "America/Puerto_Rico","美洲/波多黎各"
    "America/Los_Angeles","美洲/洛杉矶"
    "Pacific/Guadalcanal","太平洋/瓜达尔卡纳尔岛"
    "Worldwide","世界标准时间"
    "+08:00", "Asia/Ho_Chi_Minh", "亚洲/胡志明市"
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    static ZoneId
    Returns the enum constant of this class with the specified name.
    static ZoneId[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • UTC

      public static final ZoneId UTC
      "Worldwide","世界标准时间"
    • GMT

      public static final ZoneId GMT
      "Universal Time","世界时"
    • ACT

      public static final ZoneId ACT
      "Australia/Darwin","澳洲/达尔文"
    • AET

      public static final ZoneId AET
      "Australia/Sydney","澳洲/悉尼"
    • AGT

      public static final ZoneId AGT
      "America/Argentina/Buenos_Aires","美洲/阿根廷/布宜诺斯艾利斯"
    • ART

      public static final ZoneId ART
      "Africa/Cairo","非洲/开罗"
    • AST

      public static final ZoneId AST
      "America/Anchorage","美洲/安克雷奇"
    • BET

      public static final ZoneId BET
      "America/Sao_Paulo","美洲/圣保罗"
    • BST

      public static final ZoneId BST
      "Asia/Dhaka","亚洲/达卡"
    • CAT

      public static final ZoneId CAT
      "Africa/Harare","非洲/哈拉雷"
    • CNT

      public static final ZoneId CNT
      "America/St_Johns","美洲/圣约翰"
    • CST

      public static final ZoneId CST
      "America/Chicago","美洲/芝加哥"
    • CTT

      public static final ZoneId CTT
      "+08:00","Asia/Shanghai", "亚洲/上海"
    • EAT

      public static final ZoneId EAT
      "Africa/Addis_Ababa","非洲/亚的斯亚贝巴"
    • ECT

      public static final ZoneId ECT
      "Europe/Paris","欧洲/巴黎"
    • IET

      public static final ZoneId IET
      "America/Indiana/Indianapolis","美洲/印第安纳州/印第安纳波利斯"
    • IST

      public static final ZoneId IST
      "Asia/Kolkata","亚洲/加尔各答"
    • JST

      public static final ZoneId JST
      "Asia/Tokyo","亚洲/东京"
    • MIT

      public static final ZoneId MIT
      "Pacific/Apia","太平洋/阿皮亚"
    • NET

      public static final ZoneId NET
      "Asia/Yerevan","亚洲/埃里温"
    • NST

      public static final ZoneId NST
      "Pacific/Auckland","太平洋/奥克兰"
    • PLT

      public static final ZoneId PLT
      "Asia/Karachi","亚洲/卡拉奇"
    • PNT

      public static final ZoneId PNT
      "America/Phoenix","美洲/凤凰城"
    • PRT

      public static final ZoneId PRT
      "America/Puerto_Rico","美洲/波多黎各"
    • PST

      public static final ZoneId PST
      "America/Los_Angeles","美洲/洛杉矶"
    • SST

      public static final ZoneId SST
      "Pacific/Guadalcanal","太平洋/瓜达尔卡纳尔岛"
    • VST

      public static final ZoneId VST
      "+08:00", "Asia/Ho_Chi_Minh", "亚洲/胡志明市"
    • EST

      public static final ZoneId EST
      "-05:00", "EST", "北美东部标准时间"
    • MST

      public static final ZoneId MST
      "-07:00", "MDT","北美山地标准时间"
    • HST

      public static final ZoneId HST
      "-10:00", "HST", "夏威夷-阿留申标准时区"
  • Method Details

    • values

      public static ZoneId[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ZoneId valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getZoneId

      public String getZoneId()
    • getEnName

      public String getEnName()
    • getCnName

      public String getCnName()