You are viewing a single comment's thread. Return to all comments →
from datetime import datetime def timeConversion(s): roz = datetime.strptime(s, "%I:%M:%S%p") final = roz.strftime("%H:%M:%S") return final
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 →
Python code (U can use built-in modules like datetime fex.)