hwclock

From Initq

Jump to: navigation, search


hwclock - query and set the hardware clock (RTC)

RTC stands for Real Time Clock. hwclock Uses many different ways to get and set Hardware Clock values. The most normal way is to do I/O to the device special file /dev/rtc, which is presumed to be driven by the rtc device driver.

Example

hwclock --set --date=newdate

hwclock --set --date "MM/DD/YYYY hh:mm:ss"

hwclock --set --date "01/01/1999 07:07:07"


You can also sync hwclock with the system clock. Make sure your system time is correct then do:

hwclock --systohc

root@aowarll271:/etc/vpnc# hwclock ; date
Tue 06 Dec 2011 08:57:34 AM CST  -0.313341 seconds
Tue Dec  6 08:57:34 CST 2011
Personal tools