Forum Moderators: coopster

Message Too Old, No Replies

Displaying current time

         

smartcard

7:58 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



I have a PHP page in that I need to show the current time in Paris, France.

How can I do it?

Quinn

8:03 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



<?php
$timezone = +1;
echo gmdate("F d, Y H:i:s", time() + 3600*($timezone+date("I")));
?>

Just edit this line accordingly:
$timezone = +1;

dreamcatcher

2:31 am on Dec 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



or:

echo date("F d, Y H:i:s", strtotime("+1 hour"));

dc