Re: Bug #14473 Updated: strtotime wont parse date
| From: | Philip Olson | Date: | Wed, 12 Dec 2001 23:51:56 +0000 |
| Subject: | Re: Bug #14473 Updated: strtotime wont parse date | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73426@lists.php.net to get a copy of this message | ||
just a fyi on why. strtotime obeys the information found here:
http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html
so, doing strtotime('Twelfth December 2001'); will work. anyway, fwiw
there you have it :)
regards,
philip olson
On 12 Dec 2001 derick@php.net wrote:
> ID: 14473
> Updated by: derick
> Reported By: lindsay.marshall@ncl.ac.uk
> Status: Open
> Old Bug Type: Date/time related
> Bug Type: Feature/Change Request
> Operating System: Redhat 7.2
> PHP Version: 4.1.0
> New Comment:
>
> >From the manual:
>
> strtotime -- Parse about any English textual datetime description into a UNIX timestamp
>
> please note it says any, not all.
>
> Moving this to a feature request.
>
> Derick
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-12-12 18:36:30] lindsay.marshall@ncl.ac.uk
>
> strtotime('12th December 2001')
>
> returns -1
>
> The 'th' after the number causes the problem, but this is a perfectly acceptable date
> representation and should be recognised I believe.
>
>
>
> ------------------------------------------------------------------------
>
>
>
> Edit this bug report at
> http://bugs.php.net/?id=14473&edit=1
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>