First, before you try Rule Machine, you might be able to do this with Simple Automation Rules, formerly Simple Lighting. See here for documentation on that app: Hubitat® Simple Lighting - Hubitat Documentation (my thinking is that you could probably use "At a specific time" and restrict the entire app in "Restrictions" based on sunrise and sunset as desired).
That being said, what you want is definitely also possible with Rule Machine. As one example, this rule:
Time is 05:00
IF (Time Between Sunset and Sunrise) THEN
That being said, given where you live, I'm actually not sure if this condition ("between sunset and sunrise") will work. In lower latitudes, these times get calculated daily just after midnight, I think, but in any case they are a specific time that will presumably be used with today's date in any calculation. I'm not sure what values you'd get here when the sun doesn't actually rise or set until a future day. You can test that, or perhaps someone else can chime in with what they may know. I'd certainly be interested in finding out.
A less elegant alternative that would definitely work is using a "Between two dates" condition or using a (virtual) switch being on or off as a condition, then manipulating the state of that virtual switch via some other app/rule. As an example of the latter, I have a few automated window blinds, and they act differently in "winter" vs "summer"--not really a scientific distinction in my case, just a switch I turn on or off depending on whether I'm finally in the part of the year where it gets way hotter/sunnier outside than I want it to be inside. I adjust this manually since it varies year by year, but it seems like there should be an easy approach for you since this behavior is predictable in your case. I'm just not 100% sure what would actually work best among these options.