#37282 [Opn->WFx]: Request to change mktime parameter order
| From: | derick@php.net | Date: | Wed, 03 May 2006 08:22:26 +0000 |
| Subject: | #37282 [Opn->WFx]: Request to change mktime parameter order | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96516@lists.php.net to get a copy of this message | ||
ID: 37282
Updated by: derick@php.net
Reported By: caluml at gmail dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.4.2
New Comment:
Remember how many scripts this will break if we change it... so we
won't change it.
Previous Comments:
------------------------------------------------------------------------
[2006-05-02 18:44:54] caluml at gmail dot com
Description:
------------
Please can we get the mktime function accepting its parameters in a
"standard" order?
Either small to big, or big to small, but something consistent.
It's insane as it is.
I did check to see if this had been reported, and couldn't find
anything, so apologies if it has been.
Reproduce code:
---------------
print date("Y-m-d H:i:s", mktime(06,05,04,03,02,01) );
Expected result:
----------------
I expect to see either:
2006-05-04 03:02:01
or
2001-02-03 04:05:06
Actual result:
--------------
I see this:
2001-03-02 06:05:04
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37282&edit=1