You are viewing a single comment's thread. Return to all comments →
def time_delta(t1, t2): struct_times = [datetime.datetime.strptime(_, "%a %d %b %Y %H:%M:%S %z") for _ in [t1, t2]]
return "%d" % (abs(struct_times[0].timestamp() - struct_times[1].timestamp()))
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 →
def time_delta(t1, t2): struct_times = [datetime.datetime.strptime(_, "%a %d %b %Y %H:%M:%S %z") for _ in [t1, t2]]