Re: PHP 4.0 Bug #7518: Rounding problems with mktime()or date()
| From: | Adam Trachtenberg | Date: | Mon, 30 Oct 2000 16:19:10 +0000 |
| Subject: | Re: PHP 4.0 Bug #7518: Rounding problems with mktime()or date() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36437@lists.php.net to get a copy of this message | ||
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@student.com | http://www.student.com /