Example #1
0
def timesince(string):
    if not string:
        return ''
    try:
        return _timesince(string)
    except (ValueError, TypeError):
        return ''
Example #2
0
def timesince(start_time):
    return _timesince(start_time)
 def timesince(self, time, now=None):
     """
     Shortcut for ``django.utils.timesince.timesince`` function
     """
     return _timesince(time, now)
Example #4
0
 def timesince(self, time, now=None):
     """
     Shortcut for ``django.utils.timesince.timesince`` function
     """
     return _timesince(time, now)
Example #5
0
 def timesince(self, now=None):
     """
     Shortcut for ``django.utils.timesince.timesince`` function
     """
     from django.utils.timesince import timesince as _timesince
     return _timesince(self.created, now)