Smallest Real time clock?

Can you write the code yourself?
Do you understand how to use microcontroller peripherals?

There is documentation for usage of tiny1 series RTC from Microchip.