Arduino Clock: Setting Time

ok, second to turn off led are solved

but there still a problem with turning on led, opposite of fading (can't remember word now)

I used code from fading, but problem is when for loop is active, clock stop counting...
any ideas how to accomplish it in another way?

if ( DateTime.now() >= nextAlarmOn && DateTime.now() < nextAlarmOff){
//digitalWrite(ledPin, HIGH);
for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=10) {
// sets the value (range from 0 to 255):
analogWrite(ledPin, fadeValue);

delay(500);
}
}
else
{
digitalWrite(ledPin, LOW);
}
}