【问题标题】:time data does not match format error in robot framework时间数据与机器人框架中的格式错误不匹配
【发布时间】:2021-04-07 12:47:45
【问题描述】:

robotframework 中的日期时间出现以下错误:

ValueError: 时间数据 '1609-38-90 78:55:36.030000' 与格式 '%Y-%m-%d %H:%M:%S.%f' 不匹配

下面是我的代码:

${lte_epoch_time}    Get Current Date    result_format=%Y-%m-%d %H:%M:%S.%f

【问题讨论】:

    标签: python-3.x robotframework


    【解决方案1】:

    你的问题本身就有答案。 '1609-38-90 78:55:36.030000' 不是有效的日期格式。月份不能是 38 天和 90 天和 78 小时。您需要在进行任何预处理之前清理您的数据集

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多