php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #5041 strtotime() parsing is sometimes supprising
Submitted: 2000-06-14 23:13 UTC Modified: 2000-07-19 10:09 UTC
From: hartmut at six dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0 Latest CVS (14/06/2000) OS: *
Private report: No CVE-ID: None
 [2000-06-14 23:13 UTC] hartmut at six dot de
"June 6 2000" is interpreted as 
   "June 6, current year, 20 hours, 00 minutes"
   (20 hours ahead of your first result)

"June 6, 2000"  would be
   "June 6, year 2000"


and i'm sure there is more of this

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-14 23:26 UTC] hholzgra at cvs dot php dot net
i'll read the yacc/bison code and document its behavior,
and no, i wont change the code as it was 'not invented
here' and should stay consistent with other implementations
until we do not improve it in a more general way or even
rewrite it (e.g. to take month names long and short
from current locale plus english)

for now it will be some documentation clarifications only
 [2000-06-14 23:35 UTC] hholzgra at cvs dot php dot net
suspended as coming changes to strtotime() where 
announced ....
 [2000-07-19 10:09 UTC] hholzgra at cvs dot php dot net
well, thats still the way it is ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC