Re: FWD: possible bug in date() function

From: Date: Tue, 12 Feb 2002 03:15:52 +0000
Subject: Re: FWD: possible bug in date() function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79971@lists.php.net to get a copy of this message
Sean R. Bright wrote:
The format specifiers are just place holders, they don't modify the behavior of adjacent specifiers. 'iS' does not work. 'S' is tied directly to the current day of the month, so the only thing that makes sense while using 'S' is either 'd' or 'j' (i.e. 'dS' or 'jS'). I suppose we could introduce new 'english suffix' specifiers for month of the year, etc, etc. but that is just cludgy and confusing, IMHO. Sean
No problem at all with me :) I guess Jim already clarified about these in the manual. -- Yasuo Ohgaki
-----Original Message----- From: Yasuo Ohgaki [mailto:yasuo_ohgaki@yahoo.com] Sent: Monday, February 11, 2002 9:26 PM To: php-dev@lists.php.net; elixer@erols.com Cc: 'Chris Newbill' Subject: Re: [PHP-DEV] FWD: possible bug in date() function Sean R. Bright wrote:
What? The original format string was: "H:i D, nS M Y" which is the part that makes no sense. He/She should be using:
As I mentioned, it does not make sense to me also. Some people may want to use "nS" for some reason, though. BTW, since iS works, I think it's easy to make nS work as well. I'm talking about consistency of behavior. It's not big deal, though. -- Yasuo Ohgaki
"H:i D, jS M Y" In other words, RTFM:> http://www.php.net/date
-----Original Message----- From: Yasuo Ohgaki [mailto:yasuo_ohgaki@yahoo.com] Sent: Monday, February 11, 2002 8:21 PM To: Chris Newbill Cc: php-dev@lists.php.net Subject: Re: [PHP-DEV] FWD: possible bug in date() function Chris Newbill wrote:
Ehh...from manual n - month without leading zeros; i.e. "1" to "12" So yeah it would print 2th. Cause today is the 10"th".
The format does not make sense much, though. I guess 1th, 2th are correct English now, instead of 1st, 2nd. ;) -- Yasuo Ohgaki
-Chris -----Original Message----- From: Yasuo Ohgaki [mailto:yasuo_ohgaki@yahoo.com] Sent: Sunday, February 10, 2002 12:47 PM To: php-dev@lists.php.net Subject: [PHP-DEV] FWD: possible bug in date() function From php-general. "2th" of Feb. is odd, isn't? Someone may want to take a look at it. -- Yasuo Ohgaki Laserjetter wrote:
I've just realised that the suffix for the day of the month
is correct
for
today (1013336429) but it isn't the 2nd today and my clock is set
right.
Anyone got any ideas? "Laserjetter" <newsaddress@saracenvsu.org.uk> wrote in message news:20020210102800.60537.qmail@pb1.pair.com...
Using the code below: $buffer['Last_access'] = 1013336429; $date = date("H:i D, nS M Y",$buffer['Last_access']); print $date; prints "10:20 Sun, 2th Feb 2002" I didnt know there was a 2th of February!! Is this a bug and do I get a prize for finding it? ;o) LJ
-- Yasuo Ohgaki
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
-- Yasuo Ohgaki _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.dev (#79971) next »