[issue33631] [ValueError] _strptime.py can't handle 12-hr format strings using '0' instead of '12' for noon and midnight

2018-05-24 Thread CatPaw Freed
CatPaw Freed added the comment: Thanks for answering my question and giving me a solution. This issue has been dawned on me that these convention are quite strange. I feel confused when thinking of 12:00am/pm vs 0:00am/pm. (@_@) (^~^) -- ___ Python

[issue33631] [ValueError] _strptime.py can't handle 12-hr format strings using '0' instead of '12' for noon and midnight

2018-05-24 Thread CatPaw Freed
New submission from CatPaw Freed : I have to process some data which date was specified in 12-hour format, eg. 9/24/2017 0:39:41 PM. I call datetime.datetime.strptime with "%m/%d/%Y %I:%M:%S %p" format. However, it throws me an error [File "C:\Python27\lib\_strptime.py", lin