• + 0 comments
    from datetime import datetime
    
    for _ in range( int(input()) ):
        first_date = datetime.strptime(input(), "%a %d %b %Y %H:%M:%S %z")
        last_date = datetime.strptime(input(), "%a %d %b %Y %H:%M:%S %z")
        print(abs(int((first_date - last_date).total_seconds())))