Dates - adding to unix 86400 seconds not equal next day

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

 



Code:

<?
//unix date is 1099177200 seconds since 01/01/1970
//date based on unix 31 10 2004
$thisdate=date("d m Y",1099177200);
print($thisdate);
$next=1099177200+60*60*24; //86400
//add 86400 should give next unix date
//date based on this is also 31 10 2004
print("<br>");
$thisdate=date("d m Y",$next);
print($thisdate);
?>

how come?

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux