note 40491 deleted from function.time by vincent

From: Date: Fri, 05 Mar 2004 12:10:00 +0000
Subject: note 40491 deleted from function.time by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66296@lists.php.net to get a copy of this message
Note Submitter: asliturk [AT] hotmail [DOT] com ---- <? 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; } ?>

« previous php.notes (#66296) next »