System Time

How to set the System Time

System clock:

date

The hardware clock can be set from the system clock and vice versa:

hwclock --systohc
hwclock --hctosys

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"

e.g.

hwclock --set --date="2012-08-18 18:33:00"