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

From: Date: Thu, 18 Oct 2001 10:08:42 +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-68210@lists.php.net to get a copy of this message
ID: 13731 Updated by: derick Reported By: sbalk@dds.nl Old Status: Open Status: Assigned Bug Type: Feature/Change Request Operating System: linux 2.4.10 PHP Version: 4.0.5 Old Assigned To: Assigned To: derick New Comment: I'll check if this is possible. Derick Previous Comments: ------------------------------------------------------------------------ [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

« previous php.dev (#68210) next »