- adding comment and rewriting function description
This commit is contained in:
parent
ef7fe86af7
commit
c7f5a8689c
|
@ -85,7 +85,7 @@ class Playlist {
|
||||||
- *
|
- *
|
||||||
- * @param float $seconds
|
- * @param float $seconds
|
||||||
- * @return string
|
- * @return string
|
||||||
- * time in playlist time format (HH:mm:ss.dddddd)
|
- * time in playlist time format (HH:mm:ss.d)
|
||||||
- */
|
- */
|
||||||
public static function secondsToPlaylistTime($p_seconds)
|
public static function secondsToPlaylistTime($p_seconds)
|
||||||
{
|
{
|
||||||
|
@ -422,6 +422,7 @@ class Playlist {
|
||||||
if(is_null($res))
|
if(is_null($res))
|
||||||
return '00:00:00';
|
return '00:00:00';
|
||||||
|
|
||||||
|
// calling two functions to format time to 1 decimal place
|
||||||
$sec = Playlist::playlistTimeToSeconds($res);
|
$sec = Playlist::playlistTimeToSeconds($res);
|
||||||
$res = Playlist::secondsToPlaylistTime($sec);
|
$res = Playlist::secondsToPlaylistTime($sec);
|
||||||
return $res;
|
return $res;
|
||||||
|
|
Loading…
Reference in New Issue