note 69221 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 21:04:21 +0000
Subject: note 69221 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186027@lists.php.net to get a copy of this message
Note Submitter: Corey ---- 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") . "."; ?>

« previous php.notes (#186027) next »