laziness, impatience, and hubris | |
PerlMonks |
Re^3: Efficiency of indoor grow light timerby holli (Abbot) |
on Nov 12, 2017 at 20:35 UTC ( [id://1203238]=note: print w/replies, xml ) | Need Help?? |
No, you don't, you Stoner :-) But finding out wether a time in between a given interval or not is easy. Doing it this way saves you from having to deal with fixed switch times, which are, as you wrote, unreliable in case of outages or just the computer being shut down at the wrong moment.
Edit: Removed C&P remnant Edit: added code Edit: added <=> (it's been a while) holli You can lead your users to water, but alas, you cannot drown them.
In Section
Seekers of Perl Wisdom
|
|