def format_duration(secs):
secs = int(secs)<EOL>if abs(secs) > <NUM_LIT>:<EOL><INDENT>mins = abs(secs) / <NUM_LIT><EOL>secs = abs(secs) - (mins * <NUM_LIT>)<EOL>return '<STR_LIT>' % ('<STR_LIT:->' if secs < <NUM_LIT:0> else '<STR_LIT>', mins, secs)<EOL><DEDENT>return '<STR_LIT>' % secs<EOL>
Format a duration in seconds as minutes and seconds.