The attached code implements the digital watch functionality using the RTC. For the ease of use,the code accepts the date and time in Sec:Min:Hr DD/MM/YR format and get the date and time from RTC in same format which can be easily understood by the end user.