PDA

View Full Version : Javascript EST clock


sleepy
09-12-03, 05:06 PM
Hey folks

Can anyone help me out with an EST text style clock?

I've searched everywhere and can find many scripts that give me options to choose many different time zones, but I don't have the knowledge to take out all the other options and show only the EST time.

I'd preferably prefer a layer based clock, as opposed to a text box or form based clock.

I appreciate the help if anyone can help. Thanks

sleepy

Chicken
09-12-03, 05:28 PM
Was one of the places you searched http://www.dynamicdrive.com/dynamicindex6/ ? There seem to be a few there, but I'm guessing you've looked at many as well, and I'm not sure if any of these meet your needs.

sleepy
09-13-03, 03:03 AM
Yeah, there's lots of clocks there, but nothing that spefically shows only EST time :(

Chicken
09-13-03, 07:21 AM
I guess these pull the time from the server? You can't set any of them to a specific time zone? That would seem odd. You'd think at least one would have you enter in GST -/+?

Dave
09-13-03, 01:58 PM
JavaScript Clocks are dependent on the end-user's time/date settings.

digitok
09-14-03, 01:37 AM
As Dave said, JavaScript clocks are dependent on the user's clock settings, as JavaScript is a client-side language and not a server-side language.

If you're wanting a clock that displays a certain time-zone's time you should probably be using a server-side lanuage such as PHP, etc.

The drawback of using a server-side language for a clock is that it would not be dynamic (ie, updating every second).

Chicken
09-14-03, 12:33 PM
DOH! digitok, I didn't even think about that, duh!

Dave
09-14-03, 07:02 PM
Yup, but who really needs to see seconds and minutes anyway? People don't come to your site to stair at a clock, that can be found on the bottom right of their screen.

tranz
09-14-03, 07:29 PM
We should build a page with just a big clock right in the middle and see how many hits it gets.

Nothing more than just a clock!

What would be funnier is to show the user their own systems time. They would think the clock was synced (sp) to their own system clock. When in fact it IS their own clock.

Corey Bryant
09-15-03, 06:59 PM
Could you tweak one of these:
http://www.zip.com.au/~astroboy/liveclock/ (this one has the ability for displaying a local time)
http://javascript.internet.com/clocks/world-clock.html