Timer for the LED to turn off.

Hi Guys, i'm new to arduino. Please pardon me if I make any mistakes in my codes.
I'm designing a lighting system which has motion sensor, and schedule dimming function.
now i'm facing problem with the turning off of LED. Schedule dimming gives a certain
% of brightness based on the timing. What i want to do is when motion sensor detects movement,
it command the LED to light up 100% for 10secs and go back to the schedule dimming
without using delay.

void setup()
{
  Serial.begin(9600);
  pinMode(LED1,OUTPUT); analogWrite(LED1,0);
  pinMode (MOTION1,INPUT);

}
void loop()
{
  if(sensor1==LOW)//detect movement
{
  analogWrite(LED1,255); // this is the part whereby i'm unsure how to implement 10secs timing
}
if(sensor2==HIGH) //no movement
{
   schedule1();
}
}

void schedule1()
{
  if(t.hour == 19 && t.min >= 0) //
  {
    analogWrite(LED1, map(70,20,100,0,255));
  }
  else if(t.hour == 20 && t.min >= 0)
  {
    analogWrite(LED1, map(90,20,100,0,255));
  }
  else if(t.hour == 21 && t.min >= 0)
  {
    analogWrite(LED1, map(25,20,100,0,255));
  }
  else if(t.hour == 22 && t.min >= 0)
  {
    analogWrite(LED1, map(70,20,100,0,255));
  }
  else if(t.hour == 23 && t.min >= 0)
  {
    analogWrite(LED1, map(60,20,100,0,255));
  }
  else if(t.hour == 00 && t.min >= 0)
  {
    analogWrite(LED1, map(40,20,100,0,255));
  }
  else if(t.hour == 01 && t.min >= 0)
  {
    analogWrite(LED1, map(30,20,100,0,255));
  }
  else if(t.hour == 02 && t.min >= 0)
  {
    analogWrite(LED1, map(30,20,100,0,255));
  }
    else if(t.hour == 03 && t.min >= 0)
  {
    analogWrite(LED1, map(30,20,100,0,255));
  }
    else if(t.hour == 04 && t.min >= 0)
  {
    analogWrite(LED1, map(40,20,100,0,255));
  }
    else if(t.hour == 05 && t.min >= 0)
  {
    analogWrite(LED1, map(80,20,100,0,255));
  }
    else if(t.hour == 06 && t.min >= 0)
  {
    analogWrite(LED1, map(80,20,100,0,255));
  }
}
  if(sensor1==LOW)//detect movement

sensor1 is NOT defined in your snippet, so we can not tell where it is valued, or how, or whether it makes sense to compare the value in it to LOW. But, somehow, I doubt that it is.

  if(t.hour == 19 && t.min >= 0) //

In your universe, is there a snowball's chance in hell that t.min will be negative? If not, is there any point in testing that it contains a non-negative value?

I am feeling like a good way to do it can be to use the mill is command and when the value you want your light to be at 255 is hit reset a long called previousmillis to current millis. Then have an if statement saying currentmillis minus previousmillis is less then the 10 second interval ale the leds high else if the interval is greater then 10 seconds the leds are to run the dimming function.

But resetting millis only if the original if statement is the is the key.