• + 0 comments

    date_format = "%a %d %b %Y %H:%M:%S %z"

    d1 = datetime.strptime(t1, date_format)
    d2 = datetime.strptime(t2, date_format)
    
    x=abs(d1-d2)
    print(x)
    print (str(int((x.total_seconds()))))
    

    why is the above giving me error?

    why