Mercurial > vixm
view vixm/util.py @ 6:50745af6a63b
Print song lengths in something better than number of milliseconds, added
":lists" command to list all the playlists
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 18 Aug 2006 20:32:00 -0400 |
parents | |
children | b5370c42288b |
line wrap: on
line source
def strtime(t): ms = t % 1000 t /= 1000 s = t % 60 t /= 60 ret = "%02d.%03d" % (s, ms) if t != 0: m = t ret = "%d:%s" % (m, ret) return ret