Door-sensor activated switch on

Hi there, i have a door-sensor and a switch. What is what i want to do is the following.
When de door-sensor is open (on) then a switch has to go on and automatic out after 10 seconds. it does not matter if the door is open or closed. This automatic has only to do it from 2100-2359hr.

Is there somebody knows which blueprint i can use for this.