PHP

By Phil Frilling, 4 January, 2017
A quick php snippet to convert seconds to HH:MM:SS


  $seconds = round($seconds);

  $output = sprintf('%02d:%02d:%02d', ($seconds/ 3600),($seconds/ 60 % 60), $seconds% 60);

Tags