How to calculate the time difference between unix time stamps?
<p>I am creating time stamps in PHP using time();</p>

<p>I have the $current_time and $purchase_time. How do I make sure that purchase_time is less than 24 hours of current time?</p>
