virtuabotixRTC library is a popular choice for interfacing Arduino boards with the DS1302 Real-Time Clock (RTC)
void loop() // This function reads the current time from the module myRTC.updateTime(); virtuabotixrtch arduino library