#include "virtuabotixRTC.h"                                                                             

#define RTC_RST 12
#define RTC_DAT 11
#define RTC_CLK 10


// Creation of the Real Time Clock Object
virtuabotixRTC myRTC(RTC_CLK, RTC_DAT, RTC_RST);

void setup()  {      
  Serial.begin(9600);
// Set the current date, and time in the following format:
// seconds, minutes, hours, day of the week, day of the month, month, year
  myRTC.setDS1302Time(00, 00, 12, 6, 10, 1, 2014);  
}

void loop()  {                                                                                            
// This allows for the update of variables for time or accessing the individual elements.                
  myRTC.updateTime();                                                                                     
                                                                                                          
// Start printing elements as individuals                                                                   
  Serial.print("Current Date / Time: ");                                                                  
  Serial.print(myRTC.dayofmonth);                                                                         
  Serial.print("/");                                                                                      
  Serial.print(myRTC.month);                                                                              
  Serial.print("/");                                                                                     //| 
  Serial.print(myRTC.year);                                                                              //| 
  Serial.print("  ");                                                                                    //| 
  Serial.print(myRTC.hours);                                                                             //| 
  Serial.print(":");                                                                                     //| 
  Serial.print(myRTC.minutes);                                                                           //| 
  Serial.print(":");                                                                                     //| 
  Serial.println(myRTC.seconds);                                                                         //| 
  
// Delay so the program doesn't print non-stop                                                           //| 
  delay( 5000);                                                                                          //| 
}                                                                                                        //| 


  
4-Digit Display
GND5VSDASCLSQWRTCDS1307+