Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5175

Advanced users • Re: Reading the RTC

$
0
0
Yes, it's in the PMIC.
Never bothered with it but you should be able to access it via 'hwclock' (will test later today myself).

Code:

hwclock -r or hwclock –show -> reads the timehwclock -w oder hwclock –systohc -> sets the time 
Look at hwclock manpage for details on how to use the commands.

EDIT:

Code:

pi@Pi5-3D-500:~ $ sudo hwclock --show2024-06-27 07:51:52.979780+02:00

Statistics: Posted by aBUGSworstnightmare — Thu Jun 27, 2024 5:05 am



Viewing all articles
Browse latest Browse all 5175

Trending Articles