You are viewing a single comment's thread. Return to all 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())))
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Time Delta
You are viewing a single comment's thread. Return to all comments →