Re[2]: [PHP] mktime() and the format of the day number entry
| From: | Tom Rogers | Date: | Fri, 03 Jan 2003 04:01:47 +0000 |
| Subject: | Re[2]: [PHP] mktime() and the format of the day number entry | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130044@lists.php.net to get a copy of this message | ||
Hi,
Friday, January 3, 2003, 10:33:39 AM, you wrote:
MJP> Just to add to that... what it is doing is reading it as a 0.
0,0,0,09,30,1998 =>> 883458000
MJP> Tue, 30 Dec 1997 00:00:00 -0500
0,0,0,0,30,1998 =>> 883458000
MJP> Tue, 30 Dec 1997 00:00:00 -0500
MJP> Did you see this in the manual?
MJP> "The last day of any given month can be expressed as the 0 day of the next month, not
MJP> the -1 day. "
MJP> I wonder if 0 has some significance in the month also?
MJP> Ok back to work.... :-)
MJP> *********** REPLY SEPARATOR ***********
MJP> On 02/01/2003 at 7:17 PM Michael J. Pawlowsky wrote:
>>Well you are right.. I also get the same results...
>>I guess you found a bug... did you look in the bug reports to see if it
>>already exists?
>>
>>
>>
with a 0 at the start php will treat it as an octal base number and 08 and 09 are not legal
octal values. You have to use intval() on them.
--
regards,
Tom