|
|
 |
Re: FN-FORUM: php date function
date posted 9th May 2006 17:23
Quoting Dom Latter [EMAIL REMOVED]
>
> On Tuesday 09 May 2006 5:58 pm, [EMAIL REMOVED] wrote:
>
>> $total_days = ($date2 - $date1) / 86400;
>
> [typo corrected]
D'oh. Sorry about that.
> If mktime() correctly applies leap seconds (I guess it doesn't) then this
> doesn't work.
I don't know enough about the PHP date functions to comment on that.
But how often are leap seconds applied? I can't really see it making
much of a difference.
Or am I missing something?
The MySQL solution was my preferred method anyway :)
Dave...
|
 |
|