Re: Moving server clock?
| From: | mnc at stoic dot net | Date: | Mon, 18 Mar 2002 00:51:13 +0000 |
| Subject: | Re: Moving server clock? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88863@lists.php.net to get a copy of this message | ||
On Sun, 17 Mar 2002, Leif K-Brooks wrote:
> Right now, I have a static server time clock on my page, produced by date().
> I would like to make it move, and I was wondering if anyone has code that
> returns the server time to javascript to animate it or something?
Are you particularly concerned about super precision?
If not, why not just output the JavaScript via PHP with the server time in
a variable, then you can have your JavaScript calculate the delta against
client PC time, and output the current time on an ongoing basis from
there.
miguel