I did check out the links you gave me - I understand the epoch number

now - but when I do the math to get the number of days difference I

get a huge number:

// get todays date

$now = time();

print "<br>now: $now";

$then = mktime(0,0,0,8,15,2003);

print "<br>then: $then";

$diff = $now - $then;

print "<br>diff: $diff";

$min = $diff * 60;

print "<br>min: $min";

$hours = $min * 60;

print "<br>hours: $hours";

$days = $hours * 24;

print "<br>days: $days";

$days is a huge number and there is not that many days diff between

time() and august 15, 2003 - what am I not understanding here?

On Sun, 03 Aug 2003 07:23:52 GMT, Blaine HIlton

<bl***************@verizon.net> wrote:

I would say first check out the 3 links that I gave:

http://www.php.net/manual/en/function.mktime.php

http://www.befriend.com/code_gallery..._elapsed_time/

http://www.webcalc.net/calc/0529.php

If you read through there you will have it working. Once you have the

time from epoch for each date you subtract. That gives you the

seconds, then times by 60 for minutes, then 60 more for hours then 24

for days.