O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting the real-time clock to final test

You can read the Pi time system with the following command:

date
Putting the real-time clock to final test

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:

Putting the real-time clock to final test

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required