Jump to content

Date based conditions in programs?


simonsez

Recommended Posts

Posted

I am working on moving all of my scheduled events from my CM11A which I use with Heyu to my Isy. The only one I can't figure out to move is the one for my Christmas lights because this schedule only works from Nov 15-Jan 3rd. How can I do a date based condition in an ispy program?

Posted

I use a condition based on time and date:

 

if
from 1200AM 1NOV2010
to 1159PM 31MAR2011

then...

else....

I don't believe there is a way to do this that is more generic (same date every year, for example).

Posted

Hello simonsez,

 

Currently, the only way to do date based (without year) is to have a program with multiple date/year combination or'ed together.

 

For instance:

If

Time is from 11/15/2010 to 12/01/2010

OR Time is from 11/15/2010 to 12/01/2011

etc.

 

With kind regards,

Michel

Posted
Hello simonsez,

 

Currently, the only way to do date based (without year) is to have a program with multiple date/year combination or'ed together.

 

For instance:

If

Time is from 11/15/2010 to 12/01/2010

OR Time is from 11/15/2010 to 12/01/2011

etc.

 

With kind regards,

Michel

 

Thanks for the response.

 

That's an unfortunate limitation, but I guess I can work around it. I went ahead and did multiple if statements for the next five years.

 

-Si.

Guest
This topic is now closed to further replies.

×
×
  • Create New...