How to code a RTC to run a code from 11:30pm to 5:30am?

if(minutesAfterMidnight > 330 && minutesAfterMidnight < 1410) runTheTraficLightCode;
else runTheYellowLightCode;

Please keep your project questions in one place.
https://forum.arduino.cc/index.php?topic=549847.0
Leo..