我正在android中编写一个闹钟应用程序,我想知道是否有任何单一的方法可以检索android os的国家和城市列表以及GMT设置,或者我可以使用本机应用程序的设置,以便我的应用程序在不连接到互联网的情况下工作就像闹钟(默认的安卓应用程序)一样。
问问题
78 次
1 回答
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"
于 2015-04-21T15:22:45.303 回答