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