Amazing!! Your code works!! I tired the read one, and it does give me time.
Sorry for not posting the code I was using, I have posted it now.
Can you have a look of the code I was using and give me any idea why it does not work please?
Thank you very much.
if my code is working you can use my code it self. Write rtc to set ur own time & Read Rtc used to read time. you can develop based on it.
when i look into your code
Wire1.begin(); // Shield I2C pins connect to alt I2C bus on Arduino Due
you need to change from Serial.begin(57600); to Serial.begin(9600);
first is baudrate need to set to 9600
second yo7u not define wire1.begin();
Which library include the Date & time here. whether it take system time or rtc time. if system time then ok. if rtc time; if new rtc it always values are arbitary. you might get wrong date & time
while posting code here u need to send us library link. because all use common library i.e wire library so additional library u need to give details