I haven't tried it yet, but in Mikrotik you can setup time based firewall rules as well to block whatever you want. Seems like an easier way to do it.
None of us have used time based firewall rules, but it could work. Drop all traffic to and from specific ip address or mac address between let's say 10:00pm and 7:30am.