Peter Scargill has a nice write-up about a powerful timing node for Node-Red, the Big timer:
Big Timer is (probably) the best-ever timing node for Node-Red, providing a general purpose timer as well as handling summer/winter correctly as well as (importantly) lighting up time (for which you should provide longitude and latitude). After all you probably don’t turn the outside lights on at 6pm!! You turn them on when it gets DARK.
Project info on Scargill’s Tech blog.