#19427 [Opn->Bgs]: function mktime() returns bad timestamp
| From: | derick@php.net | Date: | Mon, 16 Sep 2002 09:00:14 +0000 |
| Subject: | #19427 [Opn->Bgs]: function mktime() returns bad timestamp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19426@lists.php.net to get a copy of this message | ||
ID: 19427
Updated by: derick@php.net
Reported By: david.vach@centrum.cz
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: windows as well as linux
PHP Version: 4.2.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Try H:i:s instead ("m" if month already).
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-09-16 03:50:13] david.vach@centrum.cz
I found this:
function mktime() returns bad timestamp
for this code :
echo "time:".date("m.d. Y H:m:s",mktime(0, 0, 0, 9, 16, 2002));
should be the result like: 16.09. 2002 00:00:00
but the result is: 16.09. 2002 00:09:00
So the diferent is 9 minutes!!
if you try:
echo "time:".date("d.m. Y H:m:s",mktime(0, 0, 0, 4, 9, 2001));
the result is: 4.9. 2002 00:04:00
but it shoul be: 4.9. 2002 00:00:00
So the diferent is 4 minutes!!!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19427&edit=1