In this DS1307 RTC module with PIC project, the DS1307 IC stores and calculates the time and date. For setting up the circuit in real-world, you should connect a 32768Hz crystal to the pin1 and pin2 of the DS1307. And a 3-volt lithium battery to the pin3. Note that this project is using software oriented i2c. For a faster and more reliable i2c communication checkout this project here.
download the project here.