note 88484 deleted from function.date by thiago

From: Date: Mon, 26 Jan 2009 18:55:16 +0000
Subject: note 88484 deleted from function.date by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149798@lists.php.net to get a copy of this message
Note Submitter: blog.frozenonline.com ---- The documentation has the following (incorrect) example <?php $today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001 $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:16:18 m is month $today = date("H:i:s"); // 17:16:18 ?> If we want to maintain consistency with the other examples provided in the same block of code, the second line (H:m:s) is incorrect. The example shows the output of "H:m:s" as "17:16:18" This should instead be "17:03:18" Here is the corrected example: <?php $today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001 $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month $today = date("H:i:s"); // 17:16:18 ?>

« previous php.notes (#149798) next »