Contact the weather service and find out when dawn and dusk are.
Set the switches on the timer. Set the on switch to the time dusk is. Set the off switch to the time dawn is. The exact process for doing this will vary by model.
Plug the timer into the wall.
Plug the motion detector into the timer.
Check the system at dusk and dawn to make sure the timer and motion detector are working properly.