php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #13731 strtotime does not see things like '7th'
Submitted: 2001-10-18 05:44 UTC Modified: 2001-12-01 12:11 UTC
From: sbalk at dds dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: linux 2.4.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sbalk at dds dot nl
New email:
PHP Version: OS:

 

 [2001-10-18 05:44 UTC] sbalk at dds dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-18 06:08 UTC] derick@php.net
I'll check if this is possible.

Derick
 [2001-12-01 12:11 UTC] derick@php.net
This is not possible in an easy way. It's certainly not a bug.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 03:01:28 2024 UTC