RTC program for Energia

Dear all. is any one having RTC(ds1307) program for Energia. I tried with below code ,I found abnormality in operation.

I have attached the code and variation in output