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 Richmond
Add a ment  | 

2 Answers 2

Reset to default 5

Do 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