SyntaxFix
Write A Post
Hire A Developer
Questions
>>> from datetime import datetime >>> print(datetime.today().strftime("%H:%M %p")) 15:31 AM
Try replacing %I with %H.
%I
%H