#37107 [Opn->Bgs]: mktime function
| From: | derick@php.net | Date: | Mon, 17 Apr 2006 16:40:14 +0000 |
| Subject: | #37107 [Opn->Bgs]: mktime function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95887@lists.php.net to get a copy of this message | ||
ID: 37107
Updated by: derick@php.net
Reported By: eyglys at yahoo dot com dot br
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
See http://php.net/date to see what "m" does.
Previous Comments:
------------------------------------------------------------------------
[2006-04-17 16:34:21] scottmacvicar at ntlworld dot com
Read http://www.php.net/manual/en/function.date.php
m prints the month number with leading 0, hence why H:m:s produces
10:01:40
------------------------------------------------------------------------
[2006-04-17 16:01:06] eyglys at yahoo dot com dot br
Description:
------------
mktime don't read a param minutes.
Reproduce code:
---------------
<?
$date = mktime(10,30,40,1,1,1970);
echo date("d/m/Y H:m:s",$date);
?>
Expected result:
----------------
01/01/1970 10:30:40
Actual result:
--------------
01/01/1970 10:01:40
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37107&edit=1