Answers for "datetime am pm python"

0

datetime am pm python

The format is using %H instead of %I. Since %H is the "24-hour" format,
it's likely just discarding the %p information.
It works just fine if you change the %H to %I.

format = '%Y-%m-%d %H:%M %p'
Posted by: Guest on August-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language