I am experiencing apparently strange behaviours when using the following functions to access the DS1307 chip, I am able to write and read back from the DS1307 using the RTC.set and RTC.get functions and the low level functions makeTime, breakTime and CalendarYrtotm and tmYeartoCalendar, using the libraries DS1307RTC.h, Time.h and Wire.h.
My understanding is that the functions set the Year as offset since 1th-January-1970 and I guess that this is correct, if a set aYear that is greater than 2000 and I read it back everything seems to work properly, the problem arises if I set a Year that is less than 2000 for example 1999, in these cases I read back a Year that is completely wrong, but the value read from the Year register of the DS1307 chip is correct (it is the offsey since 1-Jan-1970), I think that the problem is in the libraries that performs some operations using Year 2000.
Is somebody aware about this problem, is this a real problem or it is caused by a wrong use of the library functions or I need some other setup?
If needed I can attach the simple sketch I wrote to test Time Functions.
I look forward to hear from somebody
thank you
Salvatore Sapia