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".

-Chris

-----Original Message-----
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, February 10, 2002 12:47 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> 
>>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
>>
>>
>>
>>
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to