How can I repeat something for x minutes in python?

Posted by ErikT on Stack Overflow See other posts from Stack Overflow or by ErikT
Published on 2010-04-17T21:35:53Z Indexed on 2010/04/17 21:43 UTC
Read the original article Hit count: 169

Filed under:
|
|

I have a program (temptrack) where I need to download weather data every x minutes for x amount of hours. I have figured out how to download every x minutes using time.sleep(x*60) but I have no clue how to repeat this process for a certain amount of hours. Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about time