Turn LED on after a particular time for a particular time period

I am doing a small project which consists of turning LEDs on and off using the GPIO library. I am able to successfully turn the LED's on and off using a browser on my laptop. But now I want the LED...