title: check if the given date is less than 24 hours from current date
body: <p>I need to check if that given date is less than 24 hours from current date.</p>
  
  <pre><code>$custom="2014-10-10T20:59:11.000Z";
  $createDate = new DateTime($custom); 
  $now = new DateTime();
  $difference = $now-&gt;diff($createDate, true);
  </code></pre>
  
  <p>Now I get  <code>$difference-&gt;d</code> and  <code>$difference-&gt;h</code>. </p>
  
  <p>How to find the difference in hours?</p>