admin管理员组文章数量:1414903
I was hoping someone could send me in the direction of a regularily updating time zone database.
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
I was hoping someone could send me in the direction of a regularily updating time zone database.
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
Share Improve this question edited Dec 2, 2008 at 22:47 Gilean 14.8k10 gold badges47 silver badges52 bronze badges asked Oct 24, 2008 at 10:41 Cameron RichmondCameron Richmond2 Answers
Reset to default 5Do you mean like the Olson database ?
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.
I believe the time-converter uses also such a database, as well as timeanddate., e.g. for London or New-York.
Any DST information (Daylight Saving times) can be deduced from timeanddate., but also from daylight-savings-time.info
Here is a javascript program that does exploit DST informations in order to apply the correct time shift.
And also another script for SimpleTimeZone.
You can also query DST data from global-time-zones., as in wwp.britishsummertime.co.uk. You have also informations in webexhibits
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.
If you have the latitude and longitude of wherever it is you want the timezone information for then you can map that to live timezone info using a service such as this one: http://www.earthtools/webservices.htm#timezone
If you are starting with an address or place name, you can get the lat/lng information using a geocoding service - e.g. see geonames, or google and yahoo also have services. Then use the timezone service as above.
本文标签: timeJavascript World Timezone Difference to GMT CalculatorStack Overflow
版权声明:本文标题:time - Javascript World Timezone Difference to GMT Calculator - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745172128a2646038.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论