I have the following code:
if date.datetime.now().strftime('%H:%M:%S') != ( date.time(hour = 23, minute = 59, second = 59) and date.time(hour = 13, minute = 35, second =01)):
print("ok")
I want to print ok if the time is not between midnight and 1 PM 15 minutes and 1 second in the afternoon. This script works but it is not right. how can i fix this.