Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetime #pm #python
ADD COMMENT
Topic
Name
1+5 =