Converting milliseconds to human amount of time

Harlin Seritt harlinseritt at
Fri Jan 6 19:14:20 CET 2006

How can I take a time given in milliseconds (I am doing this for an
uptime script) and convert it to human-friendly time i.e. "4 days, 2
hours, 25 minutes, 10 seonds."? Is there a function from the time
module that can do this?


Harlin Seritt

More information about the Python-list mailing list