Time Conversion

  • + 0 comments

    Python One Liner using time module:

    import time
    def timeConversion(s):
        # Write your code here
        return time.strftime("%H:%M:%S", time.strptime(s, "%I:%M:%S%p"))