Re: [PHP-DEV] PHP 4.0 Bug #7518: Rounding problems with mktime()or date() From: Adam Trachtenberg (adam <email protected>)
Date: 10/30/00

On Mon, 30 Oct 2000, Sascha Mantscheff wrote:

> So what should a poor boy do to do date arithmetics? Since there are
> no functions to do calculations on Julian days in PHP, what would you
> suppose? I fear I will have to rewrite quite some code in which I
> assumed a constant day length.

Lots of calls to mktime(). You can just increment the days counter --
mktime() will wrap months and years.

-adam

-- 
/ adam maccabee trachtenberg | it's what you think... \
\ adam <email protected>           | http://www.student.com /

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>