check if datetime matches in python code example Example: how to check if its later than python datetime.datetime.now().hour == 8