You are viewing a single comment's thread. Return to all comments →
Here's my code:
from datetime import datetime def time_delta(t1, t2): df = '%a %d %b %Y %H:%M:%S %z' res = datetime.strptime(t1, df) - datetime.strptime(t2, df) return str(abs(int(res.total_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 →
Here's my code: