Sample code:
Use current time
Time sweep range
From:
To:
Run code for current time
Run code over a day