Sunset and Sunrise Used Conditionally

Trying to get a handle on when ‘after sunset’ “ends”. I have some rules that I only want to execute between sunset and the subsequent sunrise. Is it sufficient to predicate on ‘after sunset’ or do I need to use ‘after sunset’ AND ‘before sunrise’.

Thx!

@Bry, you will need to add “before sunrise” as well since it’s considered as the next day after midnight. However, you need to edit the IF_Condition logic from any (AND) by default to all (OR) as shown in the screenshot below so it will execute the activities in the THEN path if the current time is after sunset before midnight (the end of the day) or after midnight (the start of the day) before sunrise.

2 Likes