time switch arduino uno

Dear all.

I am looking for sample code where i could use RTC clock to set various time level with their period.

I am using RTC to read real time date and time .

I would like to set time period like on and off time in various program setting.

Prg1: Monday Ontime: 7Am to off time 7PM

Prg2:tuesday Ontime: 8Am to off time 4PM

Prg3:Thursday Ontime: 10Am to off time 3PM

Prg4: saturday not set.

is there any library available to set these time level. and relay should be ON/off during these Interval of time.

Time library like this one: