note 102595 modified in function.time by danbrown

From: Date: Wed, 23 Feb 2011 16:38:22 +0000
Subject: note 102595 modified in function.time by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177259@lists.php.net to get a copy of this message
A method return GMT time (gmttime): <?php $gmtimenow = time() - (int)substr(date('O'),0,3)*60*60; echo $gmtimenow . "\n"; ?> it convert current time to GMT based on time zone offset. by frank. --was-- A method return GMT time (gmttime): $gmtimenow = time() - (int)substr(date('O'),0,3)*60*60; echo $gmtimenow . "\n"; it convert current time to GMT based on time zone offset. by frank. http://php.net/manual/en/function.time.php

« previous php.notes (#177259) next »