datetime am pm python

Solutions on MaxInterview for datetime am pm python by the best coders in the world

showing results for - "datetime am pm python"
Delina
12 Jun 2018
1The format is using %H instead of %I. Since %H is the "24-hour" format,
2it's likely just discarding the %p information.
3It works just fine if you change the %H to %I.
4
5format = '%Y-%m-%d %H:%M %p'
6
7