python time comparison code example
Example 1: how to check if its later than python
datetime.datetime.now().hour == 8
Example 2: phyton datetime comparison
# date in yyyy/mm/dd format
d1 = datetime.datetime(2018, 5, 3)
d2 = datetime.datetime(2018, 6, 1)
# Comparing the dates will return
# either True or False
print("d1 is greater than d2 : ", d1 > d2)