> -Original Message-
> From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
> Sent: 02 January 2003 23:29
>
> The month behaves the same: both '08' and '09' are treated as zero by
> mktime().
A leading 0 on a number denotes it as octal. 08 and 09 are not valid octal
numbers. PHP is interpreti
Just to add to that... what it is doing is reading it as a 0.
0,0,0,09,30,1998 => 883458000
Tue, 30 Dec 1997 00:00:00 -0500
0,0,0,0,30,1998 => 883458000
Tue, 30 Dec 1997 00:00:00 -0500
Did you see this in the manual?
"The last day of any given month can be expressed as the 0 day of the next m
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?
Results
Thu, 2 Jan 2003 19:15:35 -0500
0,0,0,10,0,1998 => 907128000
0,0,0,10,00,1998 =
The month behaves the same: both '08' and '09' are treated as zero by
mktime().
Kirk
> -Original Message-
> From: Paul Roberts [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 4:24 PM
> To: Johnson, Kirk
> Cc: [EMAIL PROTECTED]
> Subject
same here win 2K apache php4.21
output
0,0,0,10,0,1998 => 90711
0,0,0,10,00,1998 => 90711
0,0,0,10,1,1998 => 907196400
0,0,0,10,01,1998 => 907196400
0,0,0,10,2,1998 => 907282800
0,0,0,10,02,1998 => 907282800
0,0,0,10,3,1998 => 907369200
0,0,0,10,03,1998 => 907369200
0,0,0,10,4,1998 => 907
5 matches
Mail list logo