RTCDateTime dt; line error

I would appreicate anny hint to move forward.
I am trying to compile the sketch of the lesson Real Time Clock module, and I get an error at the line code RTCDateTime dt;

The message:

DS1307_Example:7:1: error: 'RTCDateTime' does not name a type; did you mean 'DateTime'?

RTCDateTime dt;

^~~~~~~~~~~

DateTime

I have already dowloaded the DS3231 ver 1.0.0 library with the library manager to make sure there is not a missing component.

1 Like

It looks like the compiler is quite clear as to what is wrong. You have declared your variable 'dt' as type RTCDateTime and there is no such thing. It even suggests the fix. The type should be DateTime.