|
Posted by Jerry Stuckle on 05/27/07 14:31
Daz wrote:
> Hello everyone.
>
> I am creating a JavaScript project which will allow users to see what
> time it is in other countries. I am wondering if there's any way to
> have the server work this out, without having to update a database
> constantly with the times and dates that certain countries set their
> clocks back or forward.
>
> Can this be done, or do I need to connect to a time server? Ideally, I
> need a time server that will return a JavaScript object containing the
> information I need, but I don't think one exists.
>
> Please could someone suggest the steps I need to take to quickly
> obtain the correct time for any given country, which will take DST
> into account? Sadly, to my knowledge, the UK is the only country that
> has hard-coded rules for when the clocks are changed, where as it
> seems to be a political thing for all other countries.
>
> If I have to run a database with this information, then so be it, but
> it seems like a lot of manual work, and I'm not sure how often I'd
> need to update it.
>
> Many thanks in advance.
>
> Daz.
>
And what are you going to do with the United States, which has six time
zones (and some not everyone observes DST). Or Russia, which has eight
time zones?
In the U.S., everyone who participates does so on the same day. But not
everyone has to participate.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|