@staticmethod<EOL><INDENT>def format_time(seconds):<DEDENT>
timedelta = datetime.timedelta(seconds=int(seconds))<EOL>mm, ss = divmod(timedelta.seconds, <NUM_LIT>)<EOL>if mm < <NUM_LIT>:<EOL><INDENT>return "<STR_LIT>" % (mm, ss)<EOL><DEDENT>hh, mm = divmod(mm, <NUM_LIT>)<EOL>if hh < <NUM_LIT>:<EOL><INDENT>return "<STR_LIT>" % (hh, mm, ss)<EOL><DEDENT>dd, hh = divmod(mm, <NUM_LIT>)<EOL>return "<STR_LIT>" % (dd, hh, mm, ss)<EOL>
Formats time as the string "HH:MM:SS".