docs: def humanize_timesince(start_time):  # pylint:disable=too-many-return-statements
      """Creates a string representation of time since the given `start_time`."""
      if not start_time:
          return start_time
  
      delta = local_now() - start_time
  
      # assumption: negative delta values originate from clock
      #             differences on different app server machines
      if delta.total_seconds() < 0:
          return 'a few seconds ago'
  
      num_years = delta.days // 365
      if num_years > 0:
          return '{} year{} ago'.format(
              *((num_years, 's') if num_years > 1 else (num_years, '')))
  
      num_weeks = delta.days // 7
      if num_weeks > 0:
          return '{} week{} ago'.format(
              *((num_weeks, 's') if num_weeks > 1 else (num_weeks, '')))
  
      num_days = delta.days
      if num_days > 0:
          return '{} day{} ago'.format(
              *((num_days, 's') if num_days > 1 else (num_days, '')))
  
      num_hours = delta.seconds // 3600
      if num_hours > 0:
          return '{} hour{} ago'.format(*((num_hours, 's') if num_hours > 1 else (num_hours, '')))
  
      num_minutes = delta.seconds // 60
      if num_minutes > 0:
          return '{} minute{} ago'.format(
              *((num_minutes, 's') if num_minutes > 1 else (num_minutes, '')))
  
      return 'a few seconds ago'