How to get the correct results calculating two unix timestamps
<p>I know this has been asked several times before but I can't seem to find the right answer. I want to calculate the difference between two unix timestamps and show this difference in days. I'm not concerned about minutes or seconds here.</p>

<pre><code>$time =  172800 - time() + 1265010604;
echo floor($time/86400);
</code></pre>

<p>Where 1265010604 is the timestamp for today and 172800 is a 3 day offset. Thanks</p>
