note 51646 added to function.date

From: Date: Wed, 06 Apr 2005 12:58:53 +0000
Subject: note 51646 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-87576@lists.php.net to get a copy of this message
If you have problems with timezone, I can purpose that function: function zdate($format, $time=0) { $offset=8; if (!$time) { $zonedate=date($format, time()+$offset*3600); } else { $zonedate=date($format, $time+$offset*3600); } return $zonedate; } Very simple, but usefull codepart. Just choose $offsett and use zdate (); instead of the date (); function. ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51646 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51646&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51646&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51646&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51646&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51646&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51646&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87576) next »