As an Arduino beginner I had a difficult time getting my RTC to work. I have a Holdding DS3231RTC but all of the Project files and libraries I found wouldn't work. I finally decided to use a library I found in the Library Manager called DS1307RTC v. 1.4.1. This library also includes the TimeLib libray. Next I would like to get this displayed on my LCD i2c.
The Library for this can be found in the Library Manager.
Search for: DS1307RTC
I couldn't find the actual DS3231 RTC that I used to place in the components section so here is the actual RTC that I used:
Holdding DS3231 AT24C32 IIC Module Precision Real Time Clock Memory Module/Precise Time Clock Module with Temperature -compenstaed Crystal Oscillator
Amazon Link: https://www.amazon.com/gp/product/B00LZCTMJM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1