Welcome to WebmasterWorld Guest from 54.144.48.252

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Displaying current time

     
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?

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;

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

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member



or:

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

dc

 

Featured Threads

Hot Threads This Week

Hot Threads This Month