note 69221 added to function.date

From: Date: Mon, 28 Aug 2006 00:55:28 +0000
Subject: note 69221 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-116404@lists.php.net to get a copy of this message
It's pretty simple, but in case anybody else is having problems getting the exact time they need because of DST (ex: on a Windows box in an area without DST), you can fix it all in a single line. Example... <?php echo "The time is " . date((date("I") ? intval(date("g")) - 1 : date("g")) . ":i m/d/y") . "."; ?> ---- Server IP: 64.71.164.2 Probable Submitter: 68.84.197.69 ---- 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.date.php Edit -- https://master.php.net/note/edit/69221 Del: integrated -- https://master.php.net/note/delete/69221/integrated Del: useless -- https://master.php.net/note/delete/69221/useless Del: bad code -- https://master.php.net/note/delete/69221/bad+code Del: spam -- https://master.php.net/note/delete/69221/spam Del: non-english -- https://master.php.net/note/delete/69221/non-english Del: in docs -- https://master.php.net/note/delete/69221/in+docs Del: other reasons-- https://master.php.net/note/delete/69221 Reject -- https://master.php.net/note/reject/69221 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116404) next »