View Single Post
  #26 (permalink)  
Old 04-12-2011, 12:54 PM
elesbb's Avatar
elesbb
Super genious in training
Offline
Threadstarter
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: Certain script run at a certain time

Quote:
Originally Posted by quick99si View Post
Yeah follows regular order of operations. I have a pair of extra parantheses above just to make it easier to read, so you can ignore that.

Also, you need to use (23-varH) otherwise you'll end up with 25hr days. Try it with 22:30... if you use 24 for the number of hours, the result will 2.5hrs until midnight

You can always do use Message() to display the current value of variables for testing and troubleshooting, something like Message("hours= " & varH) or even Message(TimeStamp()) !!
hmm , I have used message to display variable values , however , the amount of time until midnight was wrong , unless I used 24 .. maybe I'm doing something wrong ?
Reply With Quote