note 18033 added to function.date

From: Date: Tue, 08 Jan 2002 10:00:55 +0000
Subject: note 18033 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-24527@lists.php.net to get a copy of this message
I've added a little code piece in case your server is not located in your time zone: $hourdiff = "16"; // hours difference between server time // and local time in this case, we're *ahead* // of our server by 16 hours $timeadjust = ($hourdiff * 60 * 60); $melbdate = date("l, d F Y h:i a",time() + $timeadjust); print ("$melbdate"); snippet at http://www.terrabyte.dc.com.au/phpscripts.php3 -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+18033 http://master.php.net/manage/user-notes.php?action=delete+18033 http://master.php.net/manage/user-notes.php?action=reject+18033

« previous php.notes (#24527) next »