Disable a switch during a certain time period

I am not sure what kind of switch you need to disable. Is it a standard physical switch or is it a Zigbee or Z-Wave Smart Switch? If it is a smart switch, then there is something you can do. I had to do something similar to prevent a light from turning on during times my wife wants to watch the news and Jeopardy. The suggestion I was given that worked was to create a virtual switch. Then under the options of the motion lighting, use that switch to disable turning on. A rule will need to be created to specify the times the virtual switch needs to be turned on. See post #2 in this topic: Inhibit motion lighting during news and Jeopardy