note 14123 added to function.date.php
| From: | unconed at drop dot org | Date: | Wed, 18 Jul 2001 10:08:22 +0000 |
| Subject: | note 14123 added to function.date.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15530@lists.php.net to get a copy of this message | ||
An important notice should be that PHP treats values starting with a zero as octal numbers (base 8.
I remember someone asking a question about the fact that "March 08" came out as
"March 00" = "February 28/29" (depending on the leap year).
well, that's the cause. I'm not exactly sure what the behaviour for octal numbers is in
strings, but you're best to avoid using the 2-digit versions of days, months, etc. in
calculations.
http://www.php.net/manual/en/function.date.php