在哪里可以获得timeZoneWithAbbreviation的缩写列表? [英] Where can I get a list of abbreviations for timeZoneWithAbbreviation?
本文介绍了在哪里可以获得timeZoneWithAbbreviation的缩写列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用以下API进行一些时区计算:
I'd like to do some timezone calculation, using the following API:
NSTimeZone *some_time_zone = [NSTimeZone timeZoneWithAbbreviation:name];
但是,我不确定在哪里可以找到受支持的abbreviation
名称列表.例如,
however, I am not sure where to find the supported list of abbreviation
names. For example, what is the name
for the timezone of Siena Italy?
推荐答案
尝试[NSTimeZone abbreviationDictionary]
或[NSTimeZone knownTimeZoneNames]
.
这篇关于在哪里可以获得timeZoneWithAbbreviation的缩写列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文