 
 void digitalClockDisplay(){
   // digital clock display of the time
-  DateTime now = rtc.now();
-
-  printDigits(now.hour()/10,0); 
-  printDigits(now.hour()%10,4); 
-
-  printDigits(now.minute()/10,9);
-  printDigits(now.minute()%10,13);
+  tmElements_t tm;
+  RTC.read(tm);
+
+  printDigits(tm.Hour/10,0); 
+  printDigits(tm.Hour%10,4); 
+
+  printDigits(tm.Minute/10,9);
+  printDigits(tm.Minute%10,13);
 
   // lcd.setCursor(7, 1);
   //  lcd.print(now.second()/10);
   //   lcd.print(now.second()%10);
 
 
-  if (now.second()%10%2==0){
+  if (tm.Second%10%2==0){
     lcd.setCursor(7, 0);
     lcd.print("+ ");
     lcd.setCursor(7, 1);

void setup () {
  Serial.begin(57600);
  Wire.begin();
  rtc.begin();
  lcd.init();                      // initialize the lcd 
  lcd.backlight();
  lcd.home();

// Date and time functions using a DS1307 RTC connected via I2C and Wire lib

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Time.h>
#include <DateTime.h>
#include <DS1302RTC.h>
// Set pins:  CE, IO,CLK
DS1302RTC RTC(13, 12, 11);
LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

byte LT[8] = 
