title: Can't add two mySQL duration values in php
body: <p>The $res['FitnessActivityTime'] contains 2 entries, the first is 04:09:00 and the second is 01:04:00 . These are retrieved by an mySQL table. </p>
  
  <pre><code>foreach ($res as $row) {
  
      $distance += $row['FitnessDistance'];
      $time += strtotime($row['FitnessActivityTime']);
  }
  echo "Distance is " . $distance . " and time is " . date("H:i:s",$time) . "&lt;br&gt;";
  </code></pre>
  
  <p>My problem is that the result that returns is :</p>
  
  <blockquote>
    <p>Distance is 5 and time is 11:13:00</p>
  </blockquote>
  
  <p>While I need it to return</p>
  
  <blockquote>
    <p>Distance is 5 and time is 05:13:00</p>
  </blockquote>
  
  <p>To clarify what I need is hours second minutes of counting, not a time in the day(ex. 01:04:00 AM)</p>