You would either do it with a script that would change the weight of your routes based on what time of day it is, or set up a set of mangle rules that would mark connections differently depending on what time of day it is.
The second method wouldn’t necessarily be very “clean” at cut-over since the router will remember connections that have been established in the past and continue to try and send them out of the blocked interface. You could make it better by clearing out the connection table with a script at the specific times, but there may still be some lingering problems around those time frames.