#37107 [Com]: mktime function
| From: | scottmacvicar at ntlworld dot com | Date: | Mon, 17 Apr 2006 16:34:21 +0000 |
| Subject: | #37107 [Com]: mktime function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95886@lists.php.net to get a copy of this message | ||
ID: 37107
Comment by: scottmacvicar at ntlworld dot com
Reported By: eyglys at yahoo dot com dot br
Status: Open
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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