From eee9006c1fda1e75cbe65ce17dcb6ca1f2400481 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 14 Dec 2023 17:01:32 -0700 Subject: [PATCH] Add format_seconds function --- resources/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/functions.php b/resources/functions.php index 10599b7d50..bb0f26533f 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -839,6 +839,11 @@ return sprintf('%02d:%02d:%02d', $hours, $minutes, $seconds); } +//format seconds + function format_seconds($seconds) { + return gmdate("H:i:s", $seconds); + } + //browser detection without browscap.ini dependency function http_user_agent($info = '') {