Click to See Complete Forum and Search --> : Time...
David Harrison
02-21-2003, 03:19 PM
I need a script that will display the time on a page but the time according to the user's computer clock because that could be wrong. Is there some way that I can do this, if not with javascript then perhaps with some other.
B.T.W. - G.M.T. time if possible
David Harrison
02-21-2003, 03:21 PM
Correction
...time on a page but NOT the time according to...
khalidali63
02-21-2003, 05:48 PM
Or you can use a Java applet which has more chances of working on both major browsers,and I am sure there are times server which will let you ping to get the correct time to display on your site.
e.g
http://www.worldtimeserver.com/
cheers
Khalid
Charles
02-21-2003, 06:11 PM
Or you can use Simple Network Time Protocol (SNTP, http://www.faqs.org/rfcs/rfc2030.html) to get the time from any number of time hosts on the internet that are themselves set by a number of atomic clocks. If you can get it working server side then it will work for all browsers, but client side Java will give you a bit more accuracy.
As an aside, I reset my PC's clock every hour using SNTP.
khalidali63
02-21-2003, 06:19 PM
Me too , charles..on every reboot my pc resets its clock from the same source which posted above..
:D
Khalid
David Harrison
02-28-2003, 02:55 PM
how far out is your pc clock after 1 hour?
Charles
02-28-2003, 03:18 PM
Four seconds in the last half of an hour.