Osepp DS1307 RTC program error (tmElements_t tm; does not name a type)
According to example ReadTest/ReadTest.ino, you have to include

#include &lt;TimeLib.h&gt;


See also comment from Alexander below (unchecked by me) that Time.h needs to be referenced.