note 27502 added to function.date

From: Date: Mon, 09 Dec 2002 01:12:26 +0000
Subject: note 27502 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-40552@lists.php.net to get a copy of this message
I spent good amount of time trying to find how to use Daylight Saving Time from the man page. I hope that the following example will save somebody a few minutes (for sure it would do it for me) $humanDate = date("Y-m-d H:i:s", $seconds + 3600 * date("I", $seconds)); That line converts UNIX seconds to human date and adds an hour if Dayight is in effect for the supplied date. -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+27502 http://master.php.net/manage/user-notes.php?action=delete+27502 http://master.php.net/manage/user-notes.php?action=reject+27502

« previous php.notes (#40552) next »