检索android的OS国家/地区列表

时间:2015-04-21 11:53:15

标签: clock utc gmt city countries

我在android中编写一个闹钟应用程序,我想知道是否有任何单一的方法来检索android os的国家和城市列表以及GMT设置,或者我可以使用本机应用程序的设置,以便我的应用程序工作而无需连接作为闹钟(默认的Android应用程序)的互联网。

1 个答案:

答案 0 :(得分:0)

citytimezones上,您可以CSV / TSV格式下载城市列表及其各自的时区。

以下是列表的一小部分

"Aalborg","(GMT+01:00) Brussels, Copenhagen, Madrid, Paris","Denmark",57.02888870239258,9.917778015136719,"Romance Standard Time"
"Abbotsford, BC","(GMT-08:00) Pacific Time (US & Canada); Tijuana","Canada",49.06638717651367,-122.30000305175781,"Pacific Standard Time"
"Aberdeen","(GMT) Dublin, Edinburgh, Lisbon, London","United Kingdom",57.150001525878906,-2.0999999046325684,"GMT Standard Time"
"Abidjan","(GMT) Greenwich Mean Time","Cote d'Ivoire",5.336389064788818,-4.027777671813965,"Greenwich Standard Time"
"Abu Dhabi","(GMT+04:00) Abu Dhabi, Muscat","United Arab Emirates",24.483333587646484,54.36666488647461,"Arabian Standard Time"