homepage Welcome to WebmasterWorld Guest from 174.129.74.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Displaying current time
smartcard




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

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

How can I do it?

 

Quinn




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

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

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

dreamcatcher




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

or:

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

dc

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved