You can read the Pi time system with the following command:
date
Once the RTC is ready, you can test it with the following command; write the time to the RTC:
sudo hwclock -w
You can read the time from the RTC with the command given here:
sudo hwclock -r
Now for the final command. With this command, we can see both the time values, as shown in the following screenshot: