Add a method for taking the length in seconds and making a string HH:MM:SS
This commit is contained in:
parent
d3a8358816
commit
d2406b419f
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user