|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-11-01 20:29 UTC] tailinchu at gmail dot com
Description:
------------
strtotime() cannot create correct timestamp.
Reproduce code:
---------------
echo date('Ymd',strtotime('200910'));
Expected result:
----------------
20091001
Actual result:
--------------
20091101
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 22:00:02 2025 UTC |
Strtotime('200910') creates a correct timestamp on today, with a time of 20:09:10.