@staticmethod<EOL><INDENT>def format_timedelta_ticks(x, pos, n_decimals):<DEDENT>
s, ns = divmod(x, <NUM_LIT>)<EOL>m, s = divmod(s, <NUM_LIT>)<EOL>h, m = divmod(m, <NUM_LIT>)<EOL>d, h = divmod(h, <NUM_LIT>)<EOL>decimals = int(ns * <NUM_LIT:10>**(n_decimals - <NUM_LIT:9>))<EOL>s = r'<STR_LIT>'.format(int(h), int(m), int(s))<EOL>if n_decimals > <NUM_LIT:0>:<EOL><INDENT>s += '<STR_LIT>'.format(n_decimals).format(decimals)<EOL><DEDENT>if d != <NUM_LIT:0>:<EOL><INDENT>s = '<STR_LIT>'.format(int(d)) + s<EOL><DEDENT>return s<EOL>
Convert seconds to 'D days HH:MM:SS.F'