Raised This Month: $ Target: $400
 0% 

Help with time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2013 , 18:39   Re: Help with time
Reply With Quote #6

Quote:
Originally Posted by PyKw View Post
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.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode