code: def humanize_timesince(start_time):
      if not start_time:
          return start_time
      delta = local_now() - start_time
      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'