Re: Bug??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> for($i=1;$i<13;$i++) {
>         echo $i . " :: ";
>         echo date('F', mktime(0, 0, 0, $i)) . " :: ";
>         echo mktime(0, 0, 0, $i) . "\n";
> }
> 
> 
> 1 :: January :: 1107061200
> 2 :: March :: 1109739600
> 3 :: March :: 1112158800

Today is the 30th (in some parts of the world, anyway).  mktime fills
in the current time is no argument is provided.  So for Feb, the
equivalent is
mktime(0, 0, 0, 2, 30, 2005, true);
And the 30th day of Feb, 2005 is March 2nd.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux