Preserved Topic: Live clock with multiple time zones (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: 290 km/h, fast lane, Autobahn, Germany |
posted 09-14-2001 23:04
Does anyone have a code which displays the server time and dependent on that calculates 2 other clocks. What I need is one live clock to show server time (Germany) and then next to it there should be Boston time and lets say London time? I also need it to show a 24hr-clock, not AM or PM? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-14-2001 23:28
This is actually something that needs to be done on the server side. (If you want the server time) If you want them to be fully functioning it will be a combination of server side and DHTML |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-15-2001 00:44
On the other hand, if you're assuming the viewer's clock is set correctly, then you can get their time zone with the following code: |
Bipolar (III) Inmate From: 290 km/h, fast lane, Autobahn, Germany |
posted 09-15-2001 01:05
Well it would be nice to have this on a website, but it was actually meant to be for my desktop ;-) |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-15-2001 01:33
Ah well that's easier. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-15-2001 02:00
As a note I would not use seconds in this script it would make the function run once a second which may get processor intensive. |