You are viewing a single comment's thread. Return to all comments →
def time_delta(t1, t2): fmt = "%a %d %b %Y %H:%M:%S %z" d1 = datetime.strptime(t1, fmt) d2 = datetime.strptime(t2, fmt) diff = (d1 - d2).total_seconds() return str(int(abs(diff)))
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 →