You are viewing a single comment's thread. Return to all comments →
Almost a one-liner in Python :)
from time import strptime, strftime print strftime("%H:%M:%S", strptime(raw_input(), "%I:%M:%S%p"))
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 →
Almost a one-liner in Python :)