note 102595 added to function.time
[email protected] Wed, 23 Feb 2011 08:29:28 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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.
----
Server IP: 69.147.83.197
Probable Submitter: 24.156.39.169
----
Manual Page -- http://www.php.net/manual/en/function.time.php
Edit -- https://master.php.net/note/edit/102595
Del: integrated -- https://master.php.net/note/delete/102595/integrated
Del: useless -- https://master.php.net/note/delete/102595/useless
Del: bad code -- https://master.php.net/note/delete/102595/bad+code
Del: spam -- https://master.php.net/note/delete/102595/spam
Del: non-english -- https://master.php.net/note/delete/102595/non-english
Del: in docs -- https://master.php.net/note/delete/102595/in+docs
Del: other reasons-- https://master.php.net/note/delete/102595
Reject -- https://master.php.net/note/reject/102595
Search -- https://master.php.net/manage/user-notes.php