TimeZoneInfo与Olson数据库 [英] TimeZoneInfo vs. Olson database

查看:430
本文介绍了TimeZoneInfo与Olson数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的TimeZoneInfo和Olson数据库对于时区使用相同的标识符?我从GeoNames服务(基于Olson数据库)获取时区ID,并希望检索日期

解决方案

unicode联盟保持Olson数据库与Windows TimeZone Ids之间的映射,可以访问 here



另请参阅这个的问题和答案,以获得更多夏令时信息(夏令时 - 不要和不要)。


Do TimeZoneInfo and Olson database use identical identificators for time zones?

I get timezone id from GeoNames service (which is based on Olson database) and want to retrieve day light saving information for that timezone.

解决方案

The unicode consortium keeps a mapping between Olson database and Windows TimeZone Ids, which can be accessed here.

Also see this SO question and answers for more daylight savings info (Daylight saving time - do and don’ts).

这篇关于TimeZoneInfo与Olson数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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