#12665 [Com]: mktime() is strange
| From: | hardcore-h1938 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:13:13 +0000 |
| Subject: | #12665 [Com]: mktime() is strange | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63086@lists.php.net to get a copy of this message | ||
ID: 12665
Comment by: hardcore-h1938 at hotmail dot com
Reported By: Oliver dot Siegmar at gmx dot de
Status: Bogus
Bug Type: Date/time related
Operating System: Linux & Windows
PHP Version: 4.0.6
New Comment:
<a href=http://h-hardcore-orgy-mov.da.ru>hardcore h</a>
Previous Comments:
------------------------------------------------------------------------
[2001-08-08 18:29:38] jeroen@php.net
08 is octal, write 8.
See section on integers
(phpdoc / language / types / integers)
------------------------------------------------------------------------
[2001-08-08 18:17:54] alindeman@php.net
wierd...
your script says they are the same, but remove the 0's in front
of the 8 and 9 like
mktime (0,0,0,8,8,2001) (instead of mktime(0,0,0,08,08,2001))
it works as planed (not equal)
supposed to happen?? second opinion, please...
------------------------------------------------------------------------
[2001-08-08 18:06:02] Oliver dot Siegmar at gmx dot de
Hi all,
<?
if ((mktime(0,0,0,08,08,2001)) == (mktime (0,0,0,08,09,2001))) echo
"Something wrong - I think!";
?>
The result of both - mktime(0,0,0,08,08,2001) and
mktime(0,0,0,08,09,2001) - is 975538800.
Whats wrong?
Bye,
Oliver
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12665&edit=1