def format_timedelta(timedelta):
    """Formats a timedelta object to a string by throwing off the microsecond
    part from the standard timedelta string representation.

    """
    whole_repr = str(timedelta) + '.'
    return whole_repr[:whole_repr.find('.')]