You are viewing a single comment's thread. Return to all comments →
My short answer…
def timeConversion(s): return f'{int(s[:2]) % 12 + (0 if s[-2:] == "AM" else 12):02}' + s[2:8]
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 short answer…