note 91641 added to function.date

From: Date: Sun, 21 Jun 2009 01:10:39 +0000
Subject: note 91641 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-157187@lists.php.net to get a copy of this message
in the example of using date() with strings a few failures occurred that I noticed are errors on the example page. <? $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month ?> you simply can not show the t in month. I tried this <? echo date("i \m\i\n\u\t\e\s", time()); ?> but the \n is used for new line and \t is used for tabbing so there is no way to express those letters.. But this is just to show the error in the example. ---- Server IP: 208.69.120.35 Probable Submitter: 69.117.191.214 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/91641 Del: integrated -- https://master.php.net/note/delete/91641/integrated Del: useless -- https://master.php.net/note/delete/91641/useless Del: bad code -- https://master.php.net/note/delete/91641/bad+code Del: spam -- https://master.php.net/note/delete/91641/spam Del: non-english -- https://master.php.net/note/delete/91641/non-english Del: in docs -- https://master.php.net/note/delete/91641/in+docs Del: other reasons-- https://master.php.net/note/delete/91641 Reject -- https://master.php.net/note/reject/91641 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157187) next »