You are viewing a single comment's thread. Return to all comments →
I gone in a totally different way, with Python 3:
def timeConversion(s): return(datetime.datetime.strptime(s, "%I:%M:%S%p").time().strftime("%H:%M:%S"))
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 →
I gone in a totally different way, with Python 3:
def timeConversion(s): return(datetime.datetime.strptime(s, "%I:%M:%S%p").time().strftime("%H:%M:%S"))