Bug #15210 Updated: strtotime() doesn't work with ordinal suffixes

From: Date: Thu, 24 Jan 2002 18:44:22 +0000
Subject: Bug #15210 Updated: strtotime() doesn't work with ordinal suffixes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78024@lists.php.net to get a copy of this message
ID: 15210
Updated by: derick
Old Summary: strtotime() doesn't work with ordinal suffixes
Reported By: basil.hussain@kodakweddings.com
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] basil.hussain@kodakweddings.com

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



Thread (5 messages)

« previous php.dev (#78024) next »