Hi, all I am trying to add a digital clock to my page which dynamically shows the current time in the format 11:23:45 AM. Does any you know how to do it in PHP? Thanks in advance.
whoisgregg
10:22 pm on Feb 28, 2006 (gmt 0)
This sounds like more a javascript thing. Use for favorite search engine to look for something like "javascript clock" and you'll find plenty of examples.
mooger35
10:23 pm on Feb 28, 2006 (gmt 0)
google
search for: php digital clock
that gives you plenty of scripts as well.
coopster
12:54 am on Mar 1, 2006 (gmt 0)
print date("g:i:s A");
will show your server's time in that format. However, if you want it to be the time of your visitor's time zone you will have to find out what timezone they are in.
sqlnew
4:00 pm on Mar 1, 2006 (gmt 0)
I appreciate all your replies very much. Since I want a live clock to show the current time to the visitor, I'll try JavaScript.