的TimeZoneInfo与奥尔森数据库 [英] TimeZoneInfo vs. Olson database

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

问题描述

做的TimeZoneInfo和奥尔森数据库使用相同的identificators时区?

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

我从GeoNames的服务(这是基于奥尔森数据库)区ID并希望检索该时区夏令时的信息。

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

推荐答案

单向code财团一直奥尔森数据库和Windows时区ID之间的映射,可接的这里

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与奥尔森数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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