def days_hours_minutes_seconds(value):
    """
    Returns a timedelta as days, hours, minutes, seconds
    """
    minutes, seconds = divmod(value.total_seconds(), 60)
    hours, minutes = divmod(minutes, 60)
    days, hours = divmod(hours, 24)
    return int(days), int(hours), int(minutes), int(seconds)
