Converting milliseconds to human time

Paul Rubin http
Sat Jan 7 03:33:55 EST 2006


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
> def dhms(m,t):
>    if not t: return (m,)
>    return rl(m//t[0], t[1:]) + (m % t[0],)

Editing error, sigh.  Meant of course to say

>    return dhms(m//t[0], t[1:]) + (m % t[0],)



More information about the Python-list mailing list