def timeuntil(value, *args): if value is None or isinstance(value, Undefined): return u"" from django.utils.timesince import timeuntil value = template_localtime(value) return timeuntil(value, *args)
def timeuntil(value, *args): if value is None or isinstance(value, Undefined): return u'' from django.utils.timesince import timeuntil value = template_localtime(value) return timeuntil(value, *args)
def time(value, arg=None): if value is None or isinstance(value, Undefined): return u'' from django.conf import settings from django.utils.dateformat import time_format if arg is None: arg = settings.TIME_FORMAT value = template_localtime(value) return time_format(value, arg)
def time(value, arg=None): if value is None or isinstance(value, Undefined): return u"" from django.conf import settings from django.utils.dateformat import time_format if arg is None: arg = settings.TIME_FORMAT value = template_localtime(value) return time_format(value, arg)