improved player class

This commit is contained in:
kremsy
2013-11-09 22:08:06 +01:00
parent 722e2fa695
commit c9ab3fe799
4 changed files with 128 additions and 51 deletions

View File

@ -140,6 +140,16 @@ class Tools {
return $format;
}
/**
* Formats the given time (seconds) to hh:mm:ss
*
* @param int $time
* @return string
*/
public static function formatTimeH($seconds) {
return gmdate("H:i:s", $seconds);
}
/**
* Convert given data to real boolean
*