def pretty_date(the_datetime):
<EOL>diff = datetime.utcnow() - the_datetime<EOL>if diff.days > <NUM_LIT:7> or diff.days < <NUM_LIT:0>:<EOL><INDENT>return the_datetime.strftime('<STR_LIT>')<EOL><DEDENT>elif diff.days == <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif diff.days > <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>'.format(diff.days)<EOL><DEDENT>elif diff.seconds <= <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif diff.seconds < <NUM_LIT>:<EOL><INDENT>return '<STR_LIT>'.format(diff.seconds)<EOL><DEDENT>elif diff.seconds < <NUM_LIT>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif diff.seconds < <NUM_LIT>:<EOL><INDENT>return '<STR_LIT>'.format(int(round(diff.seconds / <NUM_LIT>)))<EOL><DEDENT>elif diff.seconds < <NUM_LIT>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'.format(int(round(diff.seconds / <NUM_LIT>)))<EOL><DEDENT>
Attempt to return a human-readable time delta string.