# hwclock --show
$ date
Set clock
To set the system clock directly:
# date MMDDhhmmYYYY
Hardware Clock Set
====================
To set the hardware clock directly (the argument must be in local time, even if you keep your hardware clock in UTC.):
# hwclock --set --date="YYYY-MM-DD hh:mm:ss"
# hwclock --set --date=hh:mm:ss"
or
Synch time to hardware to OS / OS to hardware
The hardware clock can be set from the system clock and vice versa:
# hwclock --systohc
# hwclock --hctosys
No comments:
Post a Comment