-
-
Save leandroh/9663351 to your computer and use it in GitHub Desktop.
real time clock in linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Real Time Clock (RTC) Drivers for Linux: https://www.kernel.org/doc/Documentation/rtc.txt | |
cat /proc/driver/rtc | |
# ----------------------------------------x---------------------------------------- | |
echo rtc-pcf8563 0x51 /sys/class/i2c-adapter/i2c-1/new_device | |
# ----------------------------------------x---------------------------------------- | |
date -s "2014-03-20 08:52:40" | |
# ----------------------------------------x---------------------------------------- | |
hwclock -w -f /dev/rtc | |
hwclock --systohc --utc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment