Add a method for taking the length in seconds and making a string HH:MM:SS

This commit is contained in:
Dave Smith-Hayes 2024-11-11 14:23:45 +00:00
parent d3a8358816
commit d2406b419f

View File

@ -25,6 +25,9 @@ class Episode
*/
protected function parseDuration(int $length): string
{
$hours = floor($length / 3600);
$minutes = floor($length / 60) % 60;
$seconds = $length % 60;
return "";
}