Results 1 to 3 of 3
09-30-2004, 08:02 AM #1
i have a script(ClockRun) that runs a clock giving the hours,minutes and seconds.
what i need to do is show the local time in users computer, and show the time in two more diferent timezones.
I can show local user time, but i'm don't know how to to now the time in "Lisbon" and "Sao Paulo" for instance.
what i'm using is this:
var date = new Date();
var hour = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();
so, i want to run the "ClockRun" with those two diferent timezones, for wich i have to know the actual time of the timezone in date.
can anyone help me?
thanks in advance
09-30-2004, 01:07 PM #2
While I'm not familiar with that particular script, I have used this clock generator before:
You can specify all of the options, the time zone, etc and it will generate the proper code. The key is that you'll need to know the GMT +/- for the specific time zone you wish to display. For example, I'm in GMT -6 with USA daylight savings time--that's Central Daylight Time.
Hope this helps and, if nothing else, gives you some tweaking ideas for your existing script.
09-30-2004, 02:24 PM #3
how stupid i was.
you are quite right, i spent just a little time looking at the script and foud what you said.
just have to do this:
thanks for your help