Arduino - DS1307
Today I did DS1307 with I2C communication
DS1307 is the IC which it will create Real-Time-Clock and send that clock via I2C bus to the microcontroller.
You can write the function to read the time which has been sent via I2C bus.
As well as you can write the function to set the time via I2C bus.