RTC Changing Time

1. Poll the Button in every 200 - 250 ms in the middle of displaying the RTC time.
2. If the Button is active: Read BCD formatted Hours from the Hours Register (address 02h) of RTC; convert it into normal decimal (natural binary); add 1 with it; convert it to BCD; write the new value into Hours Register of the RTC.

3. This link may be helpful for you.