As @jabecker says above, you could have modes that represent those timeframes. However, if these timeframes are specific to that one room, a Rule 4.0 rule would make more sense. Like this:
Trigger Event: Motion *changed*
IF (motion active) THEN
IF (time between 4pm and 7pm) Dim: 100%
IF (time between 7pm and 9pm) Dim: 50%
IF (time between 9pm and sunrise) Dim: 10%
Off: lights Delay 3:00 Cancel
That would keep the lights on as long as there is motion, then turn them off after 3 minutes of no motion. Adjustable, of course to fit your needs.