RTC programming issue.

Dear all,

Here i am attaching code that i am trying to do.i am using RTC ds1307 and arduino uno board.
I mentioned this issue here: RTC -timer issue - #7 by AJITnayak - Programming Questions - Arduino Forum

I want to run my program on Arduino Timer interrupt library When RTC is disconnected.So when rtc Is disconnected i am calculating total time in sec if total time in second > 86399 that means RTC failed. Reason it read default value . As soon as it disconnected itshould start run on Arduino timer interrupt For Every 1 s . Please help me in completing code.

Total time in sec=(3600hour)+(60min)+sec

code.rar (3.14 KB)