Light will not turn off


#21

I have a different quest related here.

It\f time is after $sunset

What determines if it is after sunset, when does it no longer become after sunset and change to before sunrise?

Just curious


#22

The way I understand it is: "after $sunset" means roughly 8pm thru 11:59:59 pm… and "before $sunrise" means 12:00:00 am thru roughly 6am.

Usually, If I want something to span that whole section of time, I will write my code inverted such as:

IF Time is NOT between $sunrise and $sunset

This way, the code does not span midnight, yet it does exactly what you want.

EDIT :
I just realized I used a similar example in post #4 above…
(After awhile, all these threads start merging together, LOL)