From d2406b419fb7d8fe6e5daafe51a11ab0835631ce Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 11 Nov 2024 14:23:45 +0000 Subject: [PATCH] Add a method for taking the length in seconds and making a string HH:MM:SS --- app/src/Domain/Entity/Episode.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/Domain/Entity/Episode.php b/app/src/Domain/Entity/Episode.php index 5a5e290..573f941 100644 --- a/app/src/Domain/Entity/Episode.php +++ b/app/src/Domain/Entity/Episode.php @@ -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 ""; }