# rtc_test -d /dev/rtc
Current RTC date/time is 18-11-2016, 18:04:32.
Users can also use date and hwclock command to test RTC as below:
# date 081518002016.30 -- Set the system time to August 15
, 2016 18:00:30
Mon Aug 15 18:00:30 UTC 2016
# date
Mon Aug 15 18:00:38 UTC 2016
# hwclock -w /dev/rtc -- Write the system time to rtc
Power off the development board, wait for a while, power on again and read the
rtc time by hwclock as below:
# hwclock -r /dev/rtc
Mon Aug 15 18:11:08 2016 0.000000 seconds
38