title: php date_diff in hours
body: <p>How is it possible to make the code below convert days in hours?</p>
  
  <pre><code>$timestart = date_create('02/11/2011' . $row-&gt;timestart); //$row-&gt;timestart returns time in 00:00:00 format
  $timestop = date_create('02/11/2011' . $row-&gt;timestop); //$row-&gt;timestop returns time in 00:00:00 format
  
  date_add($timestop, date_interval_create_from_date_string('2 days')); //add 2 days
  
  $date_diff = date_diff($timestart, $timestop);
  
  echo "Timespan: ";
  echo $date_diff-&gt;format('%h hours');
  echo "&lt;br /&gt;";
  </code></pre>
  
  <p>How can I get the <code>hours:minutes:seconds</code> elapsed? I'm trying to stay with the <code>date_diff</code> function.</p>