You are viewing a single comment's thread. Return to all comments →
My solution with Python:
def timeConversion(s): h = int(s[0:2]) if s[-2:]=='PM': h+=12 if s[0:2] == '12': h-=12 converted = str(h).zfill(2) + s[2:-2] return converted
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 →
My solution with Python: