code: def get_human_time(t):
      '''将时间标记转换成字符串'''
      if isinstance(t, int):
          # ignore micro seconds
          if len(str(t)) == 13:
              t = t // 1000
          t = datetime.datetime.fromtimestamp(t)
      return datetime.datetime.strftime(t, '%Y-%m-%d %H:%M:%S'f get_human_time(t):
      '''将时间标记转换成字符串'''
      if isinstance(t, int):
          # ignore micro seconds
          if len(str(t)) == 13:
              t = t // 1000
          t = datetime.datetime.fromtimestamp(t)
      return datetime.datetime.strftime(t, '%Y-%m-%d %H:%M:%S')
docs: 将时间标记转换成字符串