Skip to content

Instantly share code, notes, and snippets.

@rioter00
Last active August 29, 2015 14:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rioter00/20a69519b81c7f78a0d6 to your computer and use it in GitHub Desktop.
date and time logic for application
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