So now its Atmel, not 8051 as in
this thread?
There are no specific I2C functions for the RTC.
Build a set of basic I2C routines (read, write) or copy them from the internet. Then use these routines to program the rtc and red date or time from the rtc. The datasheet will tell you the necessary commands and data formats.