世界时钟:有一种简单的方法来访问区域设置? [英] World Clock: Is there an easy way to access region settings?

查看:167
本文介绍了世界时钟:有一种简单的方法来访问区域设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于美国后,我的世界时钟页上的工作我的应用程序。

As the post states I am working on a world clock page for my app.

是否有访问区域codeS到能够使世界时钟屏幕?一个办法

Is there a way to access region codes to be able to make a world clock screen?

推荐答案

听起来好像是你需要的SimpleTimeZone(语言环境下)

Sounds to me like you need SimpleTimeZone (under Locales)

http://www.androidjavadoc.com/1.1_r1_src/java/ UTIL / SimpleTimeZone.html

时区ID可以从TimeZone.getAvailableIDs获得。
希望它帮助。 :)

Timezone IDs can be obtained from TimeZone.getAvailableIDs. Hope it help. :)

这篇关于世界时钟:有一种简单的方法来访问区域设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆