• + 0 comments
    1. from datetime import datetime
    2. def time_delta(t1, t2):
    3. dt_stamp = "%a %d %b %Y %H:%M:%S %z"
    4. game = datetime.strptime(t1,dt_stamp)- datetime.strptime(t2,dt_stamp)
    5. exact_sec = abs(int((game).total_seconds()))
    6. print(exact_sec)