Time Conversion

  • + 0 comments

    Theres a simple way to do this with datetime which will save alot of time, but it doesnt hurt to do it the hard way and then take a look at the quick way:

    datetime.strptime(s, "%I:%M:%S%p").strftime("%H:%M:%S")