Quote:
Originally Posted by PyKw
It is working, but the task is repeating, and i am getting spammed with:
Code:
Its 20:00
Its 20:00
Its 20:00
Its 20:00
Its 20:00
Its 20:00
Its 20:00
Its 20:00
Its 20:00
|
You are executing the function 10 times per second. Also, if you only check "h" it will print every time the function executes during that whole hour.
I think one option would be to execute the function every minute and check both h == 20 and m == 0.
__________________