You could do this with an EEM and TCL script.
Easier option is to configure a CUE script with the intended business hours, and route all inbound calls through that AA. If business is closed, play prompt, if business is open, send call where it needs to go.