Re: [PHP] Time Help

2001-07-01 Thread KPortsmout
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

RE: [PHP] Time Help

2001-07-01 Thread Jeff Lewis
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

[PHP] Time Help

2001-07-01 Thread KPortsmout
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