homepage Welcome to WebmasterWorld Guest from 54.234.141.47
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

10+ Year Member



 
Msg#: 11074 posted 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

10+ Year Member



 
Msg#: 11074 posted 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

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



 
Msg#: 11074 posted 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