@register.filter("timeuntil", is_safe=False)
def timeuntil_filter(value, arg=None):
    """Formats a date as the time until that date (i.e. "4 days, 6 hours")."""
    if not value:
        return u''
    try:
        return timeuntil(value, arg)
    except (__HOLE__, TypeError):
        return u''

###################
# LOGIC           #
###################
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/template/defaultfilters.py/timeuntil_filter