demo_datetime_strftime_h2.py:
x = datetime.datetime.now() print(x.strftime("%H"))
C:\Users\My Name>python demo_datetime_strftime_h2.py