note 40491 added to function.time
| From: | asliturk at rn2 dot php dot net | Date: | Fri, 05 Mar 2004 11:01:07 +0000 |
| Subject: | note 40491 added to function.time | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66290@lists.php.net to get a copy of this message | ||
<?
function getCurrentGMTTime(){
$current_time = time();
$dtGMT = date("O"); // +0200
$sign = $dtGMT[0]; // +
$hour = $dtGMT[1]+$dtGMT[2]; // 02
$minu = $dtGMT[3]+$dtGMT[4]; // 00
$gmt_diff = $sign . (($hour*3600)+($minu*60));
return $current_time - $gmt_diff;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.time.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40491
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40491&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40491&report=yes
Search -- http://master.php.net/manage/user-notes.php