Getting Started With Real-Time Clocks
A real-time clock (RTC) chip is basically just like a watch — it runs on a battery and keeps time for you even when there is a power outage. Using an RTC in your project, you can keep track of long timelines, even if you reprogram your microcontroller or disconnect it from USB or its power plug.