note 102595 modified in function.time by danbrown

[email protected] Wed, 23 Feb 2011 08:38:22 -0800
Newsgroups php.notes
Message-ID <[email protected]>
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