Bug #13731 Updated: strtotime does not see things like '7th'
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)