note 63125 added to function.strtotime

From: Date: Tue, 14 Mar 2006 03:06:12 +0000
Subject: note 63125 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-105757@lists.php.net to get a copy of this message
If you are using a version of php before date_default_timezone_set() was added, and you want to get a date in GMT, use this function. <?php function gmstrtotime ($s) { $t = strtotime($s); $zone = intval(date("O"))/100; $t += $zone*60*60; return $t; } ?> ---- Server IP: 66.163.161.117 Probable Submitter: 63.227.0.147 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/note/edit/63125 Del: integrated -- http://master.php.net/note/delete/63125/integrated Del: useless -- http://master.php.net/note/delete/63125/useless Del: bad code -- http://master.php.net/note/delete/63125/bad+code Del: spam -- http://master.php.net/note/delete/63125/spam Del: non-english -- http://master.php.net/note/delete/63125/non-english Del: in docs -- http://master.php.net/note/delete/63125/in+docs Del: other reasons-- http://master.php.net/note/delete/63125 Reject -- http://master.php.net/note/reject/63125 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105757) next »