Thanks Jeff,
Thats just the job.
Ade
<< Here is the function I use when I am comparing differences ($now and $old
are Unix timestamps):
function datediff($now, $old)
{
$DIS = $now - $old; // Diff In Secs
$secs = $DIS % 60; // modulo
$DIS -= $secs;
$days = floor($DIS / (24*60
nt: Sunday, July 01, 2001 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Time Help
>
>
> Hi,
>
> I`m trying to get the difference between two date/times and then
> state how
> many days, hours and minutes there are between them.
>
> So I take my date and convert i
Hi,
I`m trying to get the difference between two date/times and then state how
many days, hours and minutes there are between them.
So I take my date and convert it into unix time. Then get the current time,
and then subtract the two to get the current difference in unix seconds. What
I`m ha
3 matches
Mail list logo