title: compare two times in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3403858/how-to-compare-two-time-in-php">How to compare two time in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>Hi I am new in time functions in php, i have, </p>
  
  <pre><code>@$download_time = date('d-m-Y H:i:s', $dec_time);
  $current_time = date('d-m-Y H:i:s');    
  $diff = abs(strtotime($current_time) - strtotime($download_time));    
  $time=65 // $time is in seconds
  </code></pre>
  
  <p>Now I want to compare if ($diff &lt; $time) how can I compare with this two values.</p>