mktime

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

 



A little confused with mktime, I'm trying to get how many days are in a
year.

$year = "2006";
$epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or
I get which day it is now. Which sucks.
$date = date("z Y", $epoch); 
print($date); // here is the problem, I get 365 days, but the year is
2005, not 2006, same goes for any year I put in.

What am I doing wrong?

Thanks,
Dan.

-- 
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