note 37401 modified in function.gmdate by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 03:15:04 +0000 |
| Subject: | note 37401 modified in function.gmdate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142039@lists.php.net to get a copy of this message | ||
If you want to get time in your timezone try this:
<?php
$zone=3600*0 //GMT
$zone=3600*1 //CET
$zone=3600*-5//USA
$date=gmdate("D M Y H:i", time() + $zone);
?>
--was--
If you want to get time in your timezone try this:
$zone=3600*0 //GMT
$zone=3600*1 //CET
$zone=3600*-5//USA
$date=gmdate("D M Y H:i", time() + $zone);
http://php.net/manual/en/function.gmdate.php