SUNSET_DATE_AND_TIME Variable

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
PRIME
Member
Posts: 29
Joined: Tue Sep 23, 2003 11:00 pm

SUNSET_DATE_AND_TIME Variable

Post by PRIME »

Hi Scott, here is a very subtle problem I have found :D



I have a task that uses the sytem time and sets it equal to the "next sunset date and time". However, the next sunset date and time does not change the next day unless I perform a + or -, for example SUNSET_DATE_AND_TIME + Days=0, Hours=00, Minutes=01, Seconds=00.

In other words, let's say the next sunset time is oct.6 at 5:00PM. But even three days later, the value of the next susnset time in the task remains at oct.6th, 5:00PM. Unless I perform a plus or minus on it as above.

I hope I'm eplaining it sufficiently. Let me know if you know what I mean. I can capture some screenshots if need be.



Thanks,

- John
=====================

Trust is good but control is better...
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

John,



I see what you mean. That's a side effect of the way the system determines which Time/Date values to update when the sunrise/sunset times change each day.



As a work-around, you should be able to use SUNSET_DATE_AND_TIME + Days=0, Hours=00, Minutes=00, Seconds=00.



Scott
Post Reply