date and time logic for application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (today = Tuesday) or (today = Wednesday) or (today = Thursday) or (today = Friday) then | |
if (whichHour > 10) and (whichHour < 17) then | |
my runApp() | |
else | |
killApp() | |
# return 3600 | |
end if | |
else if (today = Saturday) then | |
if (whichHour > 11) and (whichHour < 17) then | |
my runApp() | |
else | |
killApp() | |
# return 3600 | |
end if | |
else | |
killApp() | |
# return 3600 | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment