Calculate time difference using Python [duplicate]
问题 This question already has answers here : How do I find the time difference between two datetime objects in python? (13 answers) Closed 7 months ago . I am wondering if there is a way or builtin library available to find the difference in time from two string input. What I mean is, if I have 2 input strings: '2013-10-05T01:21:07Z' '2013-10-05T01:21:16Z' how can I can calculate the difference in time and print it as output. I know it sounds a bit silly but any help on this is appreciated. 回答1: