"""
    Returns a tuple containing the most appropriate unit for the
    number of seconds supplied and the value in that units form.
    >>> seconds_in_units(7700)
    (2, 'hour')
    """
Displaying a timedelta object in a django template