You are viewing a single comment's thread. Return to all comments →
Simple Python solution:
hour = int(s[:2]) meridian = s[-2:] if hour == 12: hour = 0 if meridian == "AM" else 12 elif meridian == "PM": hour += 12 return f'{hour:02d}{s[2:-2]}'
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 →
Simple Python solution: