note 19574 added to function.date

From: Date: Mon, 04 Mar 2002 15:14:07 +0000
Subject: note 19574 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-27318@lists.php.net to get a copy of this message
Just a little function i found: if ($dateformat == "1") { // GMT time zone $datefor = gmdate("D jS m, y"); $timefor = gmdate("G:i"); $format = "GMT"; } elseif ($dateformat == "0") { // US time zone $datefor = date("D jS m y"); $timefor = date("G:i"); $format = "US"; } echo "All times are $format"; echo "The time is $timefor"; echo "The date is $datefor"; -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+19574 http://master.php.net/manage/user-notes.php?action=delete+19574 http://master.php.net/manage/user-notes.php?action=reject+19574

« previous php.notes (#27318) next »