

Value of this option is an argument to the date(1) program. This specifies the time to which to set the Hardware Clock. date= date_string You need this option if you specify the -set option. v, -version Print the version of hwclock on Standard Output. setepoch Set the kernel's Hardware Clock epoch value to the value specified by the -epoch option. This epoch value is used whenever hwclock reads or sets the Hardware Clock. Kernel's Hardware Counter epoch value must be 1952.
TIME CLOCK SYSTEMS HARDWARE FULL
For example, if you are using the convention that the year counter in your Hardware Clock contains the number of full years since 1952, then the This is the number of years into AD to which a zero year value in the Hardware Clock getepoch Print the kernel's Hardware Clock epoch value to standard output. adjust Add or subtract time from the Hardware Clock to account for systematic drift since the last time the clock was set or adjusted. If the Hardware Clock is already in UTC, it is not reset. Where you know the System Time contains the Hardware Clock time. This is an alternate option to -hctosys that does not read the hardware clock, and may be used in system startup scripts for recent 2.6 kernels (For details on what this field used to mean, see The obsolete tz_dsttime field of the kernel's timezone value is set to DST_NONE. The local timezone is taken to be what is indicated by the TZ environment variable and/or /usr/share/zoneinfo, as tzset(3) would interpret The system time is only reset on the first call after boot. systz Set the kernel's timezone and reset the System Time based on the current timezone. w, -systohc Set the Hardware Clock to the current System Time. This is a good option to use in one of the system startup scripts. s, -hctosys Set the System Time from the Hardware Clock.Īlso set the kernel's timezone value to the local timezone as indicated by the TZ environment variable and/or /usr/share/zoneinfo, as set Set the Hardware Clock to the time given by the -date option. The time shown is always in local time, even if you keep your Hardware Clock in Coordinated r, -show Read the Hardware Clock and print the time on Standard Output. You need exactly one of the following options to tell hwclock what function to perform: You can also run hwclock periodically to insert or remove time from the Hardware Clock to compensate for systematic drift (where the clockĬonsistently gains or loses time at a certain rate if left to run). Set the Hardware Clock to a specified time, set the Hardware Clock to the System Time, and set the System Time from the Hardware Clock.

Hwclock is a tool for accessing the Hardware Clock.
