'tmElements_t' does not name a type
Clearly the compiler does not know what tmElements_t means.

It is defined in TimeLib.h

In your program you reference Time.h instead, where it is not defined.

So:  Change

include &lt;Time.h&gt;


to

include &lt;TimeLib.h&gt;


and it should clear that error.