You are viewing a single comment's thread. Return to all comments →
I did it like this in python 3
from datetime import datetime t = input() dt=datetime.strptime(t, '%I:%M:%S%p') print(dt.strftime('%H:%M:%S'))
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
I did it like this in python 3