code: def date_and_delta(value):
      
      now = _now()
      if isinstance(value, datetime):
          date = value
          delta = now - value
      elif isinstance(value, timedelta):
          date = now - value
          delta = value
      else:
          try:
              value = int(value)
              delta = timedelta(seconds=value)
              date = now - delta
          except (ValueError, TypeError):
              return (None, value)
      return date, abs_timedelta(delta)
docs: Turn a value into a date and a timedelta which represents how long ago
      it was.  If that's not possible, return (None, value).