Looking for code basis.. for basic programmable daily timer..

Hi group.
Im using a 2560 with an 1302 RTC. I and am wanting to implement some daily timer functions as well as some if>then>output high for period of minutes/hours.

Im looking for some code that may suggest "on LCD" editing of time strings, saving time strings to memory, and comparing of time/date strings. I dont want to re-invent the wheel if its out there already.

This project will eventually be part of a SD data logger that also reacts to and creates conditions for use in an RE/PV system. I kinda think i should embed timers in all my ard projects.. Currently the box can talk to a Midnight Classic150 Solar Charge Controller over modbus. The communication reliability has actually left quite a bit to be desired tho, but i think i need to open a new topic for that..

Any points
Thanks

1302? Do you mean 1307, as in DS1307?
There are existing Time libraries already.
You might also look at liudr's PHI-2 LCD modules/menu software