You are viewing a single comment's thread. Return to all comments →
from datetime import datetime as dt def time_delta(t1, t2): fmt = "%a %d %b %Y %H:%M:%S %z" t1_dt = dt.strptime(t1, fmt) t2_dt = dt.strptime(t2, fmt) if (t1_dt.year + t2_dt.year) <= 6000: return str(abs(int((t1_dt - t2_dt).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 →