note 82531 deleted from function.mktime by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 03:27:52 +0000 |
| Subject: | note 82531 deleted from function.mktime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142062@lists.php.net to get a copy of this message | ||
Note Submitter: egi at gmx dot ch
----
> You said :
> mktime() seems to produce an incorrect result when you have months and dates prefixed with 0.
> eg. mktime(0, 0, 0, 04, 08, 2008);
> will produce an incorrect result where as
> mktime(0, 0, 0, 4, 8, 2008);
> produces the correct result.
This has nothing to do with mktime! It's the normal behaviour of PHP that a ANY number prefixed
with '0' is treated as Octal!
Try: print 015; // prints 13 which is the decimal representation of 018 Octal
It's not a BUG it's a FEATURE ;-)