<small id='6E7lk'></small><noframes id='6E7lk'>

  1. <tfoot id='6E7lk'></tfoot>

      <legend id='6E7lk'><style id='6E7lk'><dir id='6E7lk'><q id='6E7lk'></q></dir></style></legend>

        <bdo id='6E7lk'></bdo><ul id='6E7lk'></ul>
      <i id='6E7lk'><tr id='6E7lk'><dt id='6E7lk'><q id='6E7lk'><span id='6E7lk'><b id='6E7lk'><form id='6E7lk'><ins id='6E7lk'></ins><ul id='6E7lk'></ul><sub id='6E7lk'></sub></form><legend id='6E7lk'></legend><bdo id='6E7lk'><pre id='6E7lk'><center id='6E7lk'></center></pre></bdo></b><th id='6E7lk'></th></span></q></dt></tr></i><div id='6E7lk'><tfoot id='6E7lk'></tfoot><dl id='6E7lk'><fieldset id='6E7lk'></fieldset></dl></div>
    1. Java 中的时区 ID

      TimeZone ID#39;s in Java(Java 中的时区 ID)
      <i id='Oe8or'><tr id='Oe8or'><dt id='Oe8or'><q id='Oe8or'><span id='Oe8or'><b id='Oe8or'><form id='Oe8or'><ins id='Oe8or'></ins><ul id='Oe8or'></ul><sub id='Oe8or'></sub></form><legend id='Oe8or'></legend><bdo id='Oe8or'><pre id='Oe8or'><center id='Oe8or'></center></pre></bdo></b><th id='Oe8or'></th></span></q></dt></tr></i><div id='Oe8or'><tfoot id='Oe8or'></tfoot><dl id='Oe8or'><fieldset id='Oe8or'></fieldset></dl></div>
    2. <small id='Oe8or'></small><noframes id='Oe8or'>

        <bdo id='Oe8or'></bdo><ul id='Oe8or'></ul>
        • <legend id='Oe8or'><style id='Oe8or'><dir id='Oe8or'><q id='Oe8or'></q></dir></style></legend>
            <tbody id='Oe8or'></tbody>

                <tfoot id='Oe8or'></tfoot>
              1. 本文介绍了Java 中的时区 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在使用 java TimeZone 时遇到了奇怪的问题..

                I'm having weird problem with java TimeZone..

                调用 TimeZone.getDefault() 会给出我的本地时区,它的 ID 为GMT+02:00".有趣的是,这个 ID 没有出现在 TimeZone.getAvailableIDs() 提供的列表中.显然我的区域似乎是Etc/GMT+2".

                Calling TimeZone.getDefault() gives my local time zone, which has an ID "GMT+02:00". Funny thing is that this ID doesn't appear in a list provided by TimeZone.getAvailableIDs(). Apparently my zone appears to be "Etc/GMT+2".

                我正在尝试使用时区填充组合,但无法进行选择,因为 GMT+02:00 不在列表中.有人见过这个问题吗?有什么想法吗?

                I'm trying to populate a combo with time zones, but it's impossible to put a selection because GMT+02:00 is not in the list.. Anyone seen this problem? Any ideas?

                更新:

                底线是 - 不能依赖 ID 字符串,必须使用偏移量,因为显示 ID 可能因系统而异.

                The bottom line is - can't rely on ID strings, must go with the offset as display ID's may vary from system to system.

                推荐答案

                回头看其他一些 SO 问题,这似乎是一个 Java-on-Windows 问题.请看一下这篇文章,尤其是答案 1,它指向一个可以解决您的映射问题的维基百科链接.

                Looking back on some other SO questions, this seems to be a Java-on-Windows problem. Please have a look at this article, especially answer 1, which points to a wikipedia link that may solve your mapping issue.

                这篇关于Java 中的时区 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
                Java CLI UI-design: frameworks or libraries?(Java CLI UI 设计:框架还是库?)
                About the use of Beans.xml configuration file in Spring Framework application(关于Spring Framework应用中Beans.xml配置文件的使用)
                What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?(Spring、Struts、Hibernate、JavaServer Faces、Tapestry 有什么区别?)
                Are there any android application framework like spring?(有没有像spring这样的android应用程序框架?)
                Java Swing based game framework. Any advice?(基于 Java Swing 的游戏框架.有什么建议吗?)
              2. <small id='qIsv4'></small><noframes id='qIsv4'>

                  <tfoot id='qIsv4'></tfoot>
                  1. <legend id='qIsv4'><style id='qIsv4'><dir id='qIsv4'><q id='qIsv4'></q></dir></style></legend>

                      <bdo id='qIsv4'></bdo><ul id='qIsv4'></ul>

                        <tbody id='qIsv4'></tbody>
                      • <i id='qIsv4'><tr id='qIsv4'><dt id='qIsv4'><q id='qIsv4'><span id='qIsv4'><b id='qIsv4'><form id='qIsv4'><ins id='qIsv4'></ins><ul id='qIsv4'></ul><sub id='qIsv4'></sub></form><legend id='qIsv4'></legend><bdo id='qIsv4'><pre id='qIsv4'><center id='qIsv4'></center></pre></bdo></b><th id='qIsv4'></th></span></q></dt></tr></i><div id='qIsv4'><tfoot id='qIsv4'></tfoot><dl id='qIsv4'><fieldset id='qIsv4'></fieldset></dl></div>