note 22601 added to function.strtotime

From: Date: Mon, 24 Jun 2002 16:09:01 +0000
Subject: note 22601 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-32155@lists.php.net to get a copy of this message
My previous gmstrtotime() doesn't handle daylight... I found out that strtotime() supports the "GMT" keyword. The only thing which is needed to convert GMT time string into proper UNIX timestamp is to make sure that the "GMT" keyword is present. function gmstrtotime2($string) { $string=$string.(eregi("GMT", $string) ? "" : " GMT"); return strtotime($string); } -- http://www.php.net/manual/en/function.strtotime.php http://master.php.net/manage/user-notes.php?action=edit+22601 http://master.php.net/manage/user-notes.php?action=delete+22601 http://master.php.net/manage/user-notes.php?action=reject+22601

« previous php.notes (#32155) next »