Welcome to WebmasterWorld Guest from 54.234.38.8

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Displaying current time

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

Junior Member

10+ Year Member

joined:Aug 23, 2004
posts:86
votes: 0


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)

Preferred Member

10+ Year Member

joined:Sept 26, 2002
posts:402
votes: 0


<?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)

Senior Member

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

joined:Mar 30, 2003
posts:3719
votes: 0


or:

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

dc

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members