simonsez Posted December 26, 2010 Posted December 26, 2010 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?
oberkc Posted December 26, 2010 Posted December 26, 2010 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).
Michel Kohanim Posted December 27, 2010 Posted December 27, 2010 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
simonsez Posted December 28, 2010 Author Posted December 28, 2010 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.
Recommended Posts