Back to JS main page

BY:Cameron Gregory...Homepage
DATE:1996-08-08


COMMENTS:

Server Clock

This page written with Java Script implements a Clock. The only argument is the offset in minutes to GMT. Using zero will indicate local time.

ServerClock() Note that it seems as if the javascript function getTimezoneOffset returns a value that is one minute off . (at least on Solaris it returns -239 instead of -240).

Note Also that this does not have the code to handle Daylight saving times as well. It would be nice if you had a simple function that would return the correct value but, it's the old TimeZone thing!

How To


If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.

URL: http://www.oocities.org/SiliconValley/7116/jv_srvcl.html