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