title: How to use gmdate() to display more than 24 hours, but not days
body: <p>I want to display a time like this</p>
  
  <pre><code>80:00:00
  </code></pre>
  
  <p>Hours:Minutes:Seconds</p>
  
  <p>When I use this</p>
  
  <pre><code>gmdate("H:i:s", $time)
  </code></pre>
  
  <p>It displays</p>
  
  <pre><code>08:00:00
  </code></pre>
  
  <p>gmdate() has hours display 0 once it reaches 24, start counting up to 24 again.</p>
  
  <p>I have tried this</p>
  
  <pre><code>$minsec = gmdate("i:s", $time);
  $hours = gmdate("d", $time)*24 + gmdate("H", $time);
  echo $hours.':'.$minsec;
  </code></pre>
  
  <p>But this displays.</p>
  
  <pre><code>32:00:00
  </code></pre>
  
  <p>I understand from elsewhere on stackoverflow this might be because of daylight savings time. See here.</p>
  
  <p><a href="https://stackoverflow.com/questions/25102710/convert-days-from-gmdate-into-hours">Convert days from gmdate() into hours?</a></p>
  
  <p>I have not found any good solutions. What is a consistent, function solution to this problem.</p>