Java:如何为Mountain时间创建TimeZone对象? [英] Java: How can I create a TimeZone object for Mountain time?
本文介绍了Java:如何为Mountain时间创建TimeZone对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有必要禁用夏令时。
推荐答案
好吧,在这个列表的zoneinfo时区名称有很多声称是山地时间。找到最适合你想要的,并使用它。例如:
Well, in this list of zoneinfo time zone names there are plenty which claim to be "Mountain Time". Find the one that best fits what you want, and use that. For example:
TimeZone zone = TimeZone.getTimeZone("America/Denver");
这篇关于Java:如何为Mountain时间创建TimeZone对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文