You are viewing a single comment's thread. Return to all comments →
from datetime import datetime # Complete the time_delta function below. def time_delta(t1, t2): d_format = "%a %d %b %Y %H:%M:%S %z" time_stamp1 = datetime.strptime(t1, d_format) time_stamp2 = datetime.strptime(t2, d_format) time_dif = time_stamp2 - time_stamp1 time_delta_in_seconds = abs(time_dif.total_seconds()) return str(int(time_delta_in_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 →