The clock on the datalogger seems to be a pretty standard DS1302 module, which you should be able to access with the libraries included in the Time library. As long as you don't have conflics between your boards with used pins, all should be fine.
Great stuff thank you, I got the two remain parts delivered but they sent the lcd for the larger version of the arduino board so have had to order another
Need help as i am struggling a little, I am trying to merge the two sketches attached i have the sensor shield with the rtc built in and need the lighting code amended to use that rtc
Look at the samples for the Time library how to use it with the RTC and get the current time. That will save you a lot of hassles. No need to reinvent the wheel every time.
Write a separate sketch for each major junction. Fake input values if necessary.
Put lots of intermediate results out to Serial Monitor.
Get each subsystem to work first.
-Then review all the Constants, Variables, Libraries, subroutines for each subassembly and merge the stuff above SETUP on the simplest subassembly and make sure you can compile.
Add the other code piece by piece, checking that you can compile OK
Finally make the "real" data come from the "real" code and see if it works. Keep a lot of the Serial Monitor stuff working unless it messes up timing.
Slow down and make sure you understand each piece.