You are viewing a single comment's thread. Return to all comments →
Python
if s[8::] == str("PM") and s[0:2:] != str("12"): t = str(int(s[0:2:]) + 12) o = s.replace(s[0:2:],t) return o[0:8:] elif s[8::] == str("PM") and s[0:2:] == str("12"): return s[0:8:] if s[8::] == str("AM") and s[0:2:] == str("12"): t = str("00") o = s.replace(s[0:2:],t) return o[0:8:] elif s[8::] == str("AM") and s[0:2:] != str("12"): return s[0: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 →
Python