def _format_timedelta(self, index, time_delta, is_current):
time_delta_formatted = "<STR_LIT>"<EOL>if time_delta["<STR_LIT>"] <= self.time_to_max:<EOL><INDENT>time_delta_formatted = self.py3.safe_format(<EOL>self.format_timer,<EOL>{<EOL>"<STR_LIT>": time_delta["<STR_LIT>"],<EOL>"<STR_LIT>": time_delta["<STR_LIT>"],<EOL>"<STR_LIT>": time_delta["<STR_LIT>"],<EOL>"<STR_LIT>": is_current,<EOL>},<EOL>)<EOL><DEDENT>return time_delta_formatted<EOL>
Formats the dict time_to containg days/hours/minutes until an
event starts into a composite according to time_to_formatted.

Returns: A formatted composite.