On both, if you have CUE you can use an custom AA script with business hours and day schedules.
On CM, you can also use time-of day routing.
On CME, you can use night-service, or a version of B-ACD/AA that I modifies for time support.
Lot of options really.