def timesince(string): if not string: return '' try: return _timesince(string) except (ValueError, TypeError): return ''
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)
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)