You are viewing a single comment's thread. Return to all comments →
format = '%a %d %b %Y %H:%M:%S %z' t1_str = datetime.datetime.strptime(t1, format) t2_str = datetime.datetime.strptime(t2, format) diff = t1_str - t2_str seconds = abs(int(diff.total_seconds())) return str(seconds)
Seems like cookies are disabled on this browser, please enable them to open this website
Time Delta
You are viewing a single comment's thread. Return to all comments →