def secs_to_human(seconds):
    """Convert a number of seconds to a human readable string, eg  "8 days"
    """
    assert isinstance(seconds, int) or isinstance(seconds, float)
    perday = 86400
    return "%d days ago" % int(seconds / perday)