#include <LiquidCrystal.h>
#include "RTClib.h"

LiquidCrystal lcd(12,11,10,9,8,7);
RTC_DS1307 rtc;
void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2);
  rtc.begin();
}

void loop() {
  // put your main code here, to run repeatedly:
  ura();
}
void ura(){
  DateTime now = rtc.now();
  int ure = now.hour();
  int minute = now.minute();
  int sec = now.second();
  char ura[14];
  sprintf (ura, "%02d:%02d:%02d", ure, minute, sec);
  lcd.setCursor(7,0);
  lcd.print(ura);
}
GND5VSDASCLSQWRTCDS1307+