PDA

View Full Version : Eastern digital clock code?



---MAD---
13-08-2005, 03:12 PM
Hi,
anyone know a code for an estern digital clock?
if not, do you know where to find one......

splintercell!
13-08-2005, 03:19 PM
eastern :s

Anderman
13-08-2005, 03:21 PM
Its different time zones in america,
Most javascript clocks runs off the users system time so it wouldnt really matter

---MAD---
13-08-2005, 04:03 PM
yeah but i found a gmt one but i was wondering where to get the codes for an eastern one..

мϊкэ
13-08-2005, 04:06 PM
just change the code to like were it says GMT change it to like +5 or -5 or whatever!

Mentor
13-08-2005, 04:08 PM
im kinda with anderman "/ most javascipt clocks i know of just take it from the computer viewing its internal clock, so would be the same time and date as the one on the task bar "/

---MAD---
13-08-2005, 05:25 PM
well if i did that then it would show different times to different people in different places :S

I have this, this takes it from the pc and shows whats in the task bar..:

"<SCRIPT LANGUAGE="JavaScript"><!--
d = new Date();
hr = d.getHours();
min = d.getMinutes();
if(hr==0){ap=" AM";hr=12}
else if(hr <= 11){ap=" AM"}
else if(hr == 12){ap=" PM";hr=12}
else if(hr >= 13){ap=" PM";hr-=12}

if(min <= 9){min="0"+min}

document.write(""+hr+":"+min+ap+"");
//--></script>"

Anderman
13-08-2005, 07:21 PM
That should do it ;)

Rix
13-08-2005, 10:12 PM
Why have javascript clocks on your site they change to the same as your desktop one

if you want to no the times download qlock
from google

or simply go to www.worldtime.com

---MAD---
15-08-2005, 11:51 AM
ok thanks.. :)

Want to hide these adverts? Register an account for free!