You'll need to use Mode Manager and Rule Machine to do this plus being on the most recent platform release (2.3.8.118). Basically, if you use Mode Manager to set the time periods, Rule Machine added a new function (Mode change back to whatever mode manager would do? (Take II) - #17 by bravenel) set per Mode at times. With Rule Machine, you would create:
Trigger
Lamp turns on
Action
Set per Mode at Times