diff options
author | sigger <sigger@ampache> | 2006-02-02 04:34:15 +0000 |
---|---|---|
committer | sigger <sigger@ampache> | 2006-02-02 04:34:15 +0000 |
commit | 1e7684528e28aea6f30e31fa3f674d61e282df30 (patch) | |
tree | d43678e0104f8a299663779f0c9d23799d885bc3 /lib/general.lib.php | |
parent | 27847d72ca91c107a1f74cb1e072e58c9cbe7b8f (diff) | |
download | ampache-1e7684528e28aea6f30e31fa3f674d61e282df30.tar.gz ampache-1e7684528e28aea6f30e31fa3f674d61e282df30.tar.bz2 ampache-1e7684528e28aea6f30e31fa3f674d61e282df30.zip |
mpd mini-control for all pages! final ajax tweak? etc
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index 9f985196..e485337f 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -901,4 +901,15 @@ function logout() { } // logout +/** + * format_time + * This formats seconds into minutes:seconds + */ + +function format_time($seconds) { + +return sprintf ("%d:%02d", $seconds/60, $seconds % 60); + +} //format_time + ?> |