Practical Information:
The RTC has 5 pins that are used for connecting to a microcontroller. GND, VCC, SCL, SDA, and SQW. The SQW is optional and depends on your use case. You can, for instance, be used as a pulse counter, but isn't necessary for usage as a clock.
Wiring it up
You should connect the VCC pin to VCC output from your microcontroller. The DS1307 accepts voltages between 4.5 and 5.5. Connect GND to ground, and connect the SCL and SDA to the corresponding SCL and SDA headers on your microcontroller (for example A4 SDA and A5 SCL for Arduino Pro Mini). &nbps;
Software
We really like this library from Paul Stoffregen. It contains everything you need to get going with the DS1307RTC chip.