PCF8563(RTC) time ajust

Hello, this is kenboko.
I started learning Arduino to make a data logger as a hobby.
I am a beginner of Ardiuno.
First,I started learning to use PCF8563 (RTC) and set the date and time, but I can't ajust the time well (minutes and seconds).
In DS3232 (RTC) I found the following statement in the example sketch.
`DateTime now;’

’now = RTC.now();’

’’DateTime compiled = DateTime(DATE, TIME);’
’if (now.unixtime() < compiled.unixtime()) {’
’’ RTC.adjust(DateTime(DATE, TIME));’
’’}’

Although, this is not available in PCF8563. (I am using rtc_PCF8563.lib)
Can anyone give me some good advice please?
Thank you in advance.
Although, this is not available in PCF8563. (I am using rtc_PCF8563.lib)
Can anyone give me some good advice please?
Thank you in advance.

I have deleted your other cross-post @kentaza.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

See if this link help.

https://playground.arduino.cc/Main/RTC-PCF8563/

  //day, weekday, month, century(1=1900, 0=2000), year(0-99)
  rtc.setDate(14, 6, 3, 1, 10);
  //hr, min, sec
  rtc.setTime(1, 15, 0);

Thank you for your prompt advice.
Even if I use rtc.setDate() and rtc.setTime() to set the date and time, they will inevitably be out of sync with the PC time.

I want to synchronize the RTC with the PC clock.

On DS-3232, rtc.ajust() seems to be an easy way to synchronize with PC clock, but it does not seem to work on PCF8563.
Please advise me if there is a better way.

I am not familiar with the operation and have posted many times.
My wrong posts had withdrawal by myself.
I will be careful in the future.
My apologies.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.