• + 0 comments
    format = '%a %d %b %Y %H:%M:%S %z'
        t1_str = datetime.datetime.strptime(t1, format)
        t2_str = datetime.datetime.strptime(t2, format)
        diff = t1_str - t2_str
        seconds = abs(int(diff.total_seconds()))
        
        return str(seconds)