Time Conversion

  • + 0 comments

    Pyhton 3 using Time module:

    def timeConversion(s: str) -> str:
        parsed_time = time.strptime(s, '%I:%M:%S%p')
        
        return time.strftime("%H:%M:%S", parsed_time)