Download the Library used HERE. Tested to work on Arduino IDE 1.0.1

RTClib.7z   RTClib.zip

 #include "Wire.h"
#include "RTClib.h"

RTC_DS1307 RTC;

void setup () {
    Serial.begin(9600);
    Wire.begin();
    RTC.begin();

  if (! RTC.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    //RTC.adjust(DateTime(__DATE__, __TIME__));
  }
}

void loop () {
    DateTime now = RTC.now();
    int current_year=now.year();
    int current_month=now.month();
    int current_day=now.day();
    int current_hour=now.hour();
    int current_minute=now.minute();
    int current_second=now.second();

    Serial.print(current_year);
    Serial.print('/');
    Serial.print(current_month);
    Serial.print('/');
    Serial.print(current_day);
    Serial.print(' ');
    Serial.print(current_hour);
    Serial.print(':');
    Serial.print(current_minute);
    Serial.print(':');
    Serial.print(current_second);
    Serial.println();
    delay(3000);
}