Bug #13731 Updated: strtotime does not see things like '7th'

From: Date: Sat, 01 Dec 2001 17:11:55 +0000
Subject: Bug #13731 Updated: strtotime does not see things like '7th'
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72206@lists.php.net to get a copy of this message
ID: 13731
Updated by: derick
Reported By: sbalk@dds.nl
Old Status: Assigned
Status: Closed
Bug Type: Feature/Change Request
Operating System: linux 2.4.10
PHP Version: 4.0.5
Old Assigned To: derick
Assigned To: 
New Comment:

This is not possible in an easy way. It's certainly not a bug.

Derick

Previous Comments:
------------------------------------------------------------------------

[2001-10-18 06:08:42] derick@php.net

I'll check if this is possible.

Derick

------------------------------------------------------------------------

[2001-10-18 05:44:02] sbalk@dds.nl

I was doing 'echo strtotime("October 12th 2001 - 02:52:51 AM");' and
unfortunately, it returned '-1'.
I expected a UNIX timestamp.

After some playing I found that the 'th' caused the trouble. 
Is strtotime unable to parse things like 'rd','nd','st' or
'th'?
Is it a bug or a non-feature?

I am using the php version which comes with debian woody.

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13731&edit=1



Thread (3 messages)

« previous php.dev (#72206) next »