Javascript世界时区与GMT计算器的差异 [英] Javascript World Timezone Difference to GMT Calculator

查看:122
本文介绍了Javascript世界时区与GMT计算器的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以将我发送到正常更新时区数据库的方向。

I was hoping someone could send me in the direction of a regularily updating time zone database.

我找到了一个,但道歉我不记得它来自哪里然而,随着当前GMT时钟的变化快速逼近,我担心我的所有数据都不正确,即从英国到New Yrok的差异将从落后5小时变为落后6小时。

I have found one, but apologies i cant remember where it was from, however with the current GMT clock change fast approaching, i fear all my data will be incorrect, ie the differences from UK to New Yrok will change from 5 hours behind to 6 hours behind.

非常感谢任何有关此事的帮助。

Any help on this matter would be much appreciated.

Cameron

推荐答案

你的意思是 Olson数据库吗?

例如, fleegix.js javascript库是一个时区启用,直接替换库存JavaScript日期,为您提供全面的时区支持,独立于运行浏览器的最终用户机器上设置的时区。它使用Olson zoneinfo文件作为其时区数据。

For instance, the fleegix.js javascript library is a timezone-enabled, drop-in replacement for the stock JavaScript Date, giving you full-blown timezone support, independent from the timezone set on the end-user's machine running the browser. It uses the Olson zoneinfo files for its timezone data.

我相信时间转换器也使用这样的数据库,以及 timeanddate.com ,例如适用于伦敦纽约

I believe the time-converter uses also such a database, as well as timeanddate.com, e.g. for London or New-York.

任何夏令时信息(夏令时)都可以从 timeanddate.com 推断,也可以从 <推断a href =http://daylight-savings-time.info/ =nofollow noreferrer> daylight-savings-time.info

Any DST information (Daylight Saving times) can be deduced from timeanddate.com, but also from daylight-savings-time.info

以下是 javascript程序 DST信息以便应用正确的时移。

还有另一个用于 SimpleTimeZone的脚本

Here is a javascript program that does exploit DST informations in order to apply the correct time shift.
And also another script for SimpleTimeZone.

您还可以从 global-time-zones.com ,如 wwp。 britishsummertime.co.uk 。您还可以参考 webexhibits.org

You can also query DST data from global-time-zones.com, as in wwp.britishsummertime.co.uk. You have also informations in webexhibits.org

参见 这个论坛 ,详细讨论了如何检索DST信息。

See this forum for a lengthy discussion about how to retrieve DST informations.

最后,看看 问题

Finally, see that SO question for a tar.gz Olson database example.

这篇关于Javascript世界时区与GMT计算器的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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