一、日期查计算

021-10-05T15:38:37.000+0800 格式的2个日期差计算

        b = datetime.datetime.strptime(bug_detail.fields.resolutiondate, "%Y-%m-%dT%H:%M:%S.%f+0800")
        a = datetime.datetime.strptime(bug_detail.fields.created, "%Y-%m-%dT%H:%M:%S.%f+0800")
        return round((b-a).total_seconds() / 3600,1)

 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-01-24
  • 2022-12-23
  • 2021-09-19
  • 2021-05-25
  • 2021-05-29
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2021-12-05
  • 2021-09-27
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案