Comparing datetimes

PHOTO EMBED

Sat Jul 03 2021 12:48:59 GMT+0000 (Coordinated Universal Time)

Saved by @sambrosio13 #python

today = str(date.today()) 
now = datetime.now()
print(now)
my_datetime = datetime.strptime(today+ ' 10:30AM', '%Y-%m-%d %I:%M%p')
print(my_datetime)
if (now > my_datetime):
    print("Hello")
content_copyCOPY