import datetime x = datetime.datetime.now() print(x.strftime("%B")) print(x.strftime("%H"))