python format seconds to hh mm ss

40

python format seconds to hh mm ss -

import time
time.strftime('%H:%M:%S', time.gmtime(12345))
#'03:25:45'

Comments

Submit
0 Comments