ID: 15210
Updated by: derick
Old Summary: strtotime() doesn't work with ordinal suffixes
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Date/time related
Bug Type: Feature/Change Request
Operating System: Linux 2.2.16enterprise
PHP Version: 4.0.5
New Comment:

Not a bug (it is not supposed to work), making it a feature request.

Derick


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

[2002-01-24 13:35:26] [EMAIL PROTECTED]

PHP does not correctly parse ordinal date suffixes in the strtotime()
function. For example:

<?php
echo strtotime("10th August 2002");
echo strtotime("22nd January 1998");
echo strtotime("November 3rd 1980");
?>

They will all fail, returning -1.

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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to