note 14936 added to function.localtime.php
| From: | test at test dot de | Date: | Wed, 22 Aug 2001 02:05:08 +0000 |
| Subject: | note 14936 added to function.localtime.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16970@lists.php.net to get a copy of this message | ||
to set up berlin time it could look like this:
<?php
print "<HTML><body><pre>";
setlocale( "LC_ALL", "de_DE" );
putenv( "PHP_TZ=Europe/Berlin" );
$now = time();
print_r( localtime(time(),true) );
print_r( getdate() );
print date("H:i:s");
print date("T");
?>
http://www.php.net/manual/en/function.localtime.php