sketch starting at given times .

Hello all ,

i have a arduino pro mini , that controls the led's at my stairs . The led's light up when i go up or down ( bottom end top pir ) . Now i would like to extend the board with a DS3231 module , this way i can tell it to operate only on certain times . Lets say from 6pm to 6 am , how can i do this end can it be done without the DS3231 module .Now it runs all day when i go up end down the stairs. Is there a sketch that i can combine with the sketch that i run now ?

The RTC library comes with examples.

Simply turn on the LEDs only when hours are between 6:00 and 18:00

That RTC is a good chip.