4
我想从问题创建到解决问题的时间。随着这些领域:吉拉蟒蛇计算时间
creation_time = issue.fields.created
resolved_time = issue.fields.resolutiondate
输出当我打印:
Creation: 2016-06-09T14:37:05.000+0200 Resolved: 2016-06-10T10:53:12.000+0200
反正是有,我可以减去分辨率日期和时间的创建日期和时间来找到多少时间是花在一个问题?
这对我来说会如何? – user3580316
添加了一个应该接近您需要的示例。 – GlennV
我收到这个错误'ValueError:'z'是格式为'%Y-%m-%dT%H:%M:%S.%f%z'' Maye'dateutil'更糟的指令(http://stackoverflow.com/questions/6571419/python-parsing-a-datetime-with-a-timezone) – user3580316