]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/adjtime_config.5.adoc
Asciidoc: Small fix in nsenter.1.adoc
[thirdparty/util-linux.git] / sys-utils / adjtime_config.5.adoc
CommitLineData
6d5b6948
MB
1= adjtime_config(5)
2:doctype: manpage
3:man manual: File formats
4:man source: util-linux {release-version}
5:page-layout: base
6:configfile: adjtime_config
7
8== NAME
9
10adjtime_config - information about hardware clock setting and drift factor
11
12== SYNOPSIS
13
14_/etc/adjtime_
15
16== DESCRIPTION
17
18The file _/etc/adjtime_ contains descriptive information about the hardware mode clock setting and clock drift factor. The file is read and write by *hwclock*(8); and read by programs like rtcwake to get RTC time mode.
19
20The file is usually located in _/etc_, but tools like *hwclock*(8) or *rtcwake*(8) can use alternative location by command line options if write access to _/etc_ is unwanted. The default clock mode is "UTC" if the file is missing.
21
22The Hardware Clock is usually not very accurate. However, much of its inaccuracy is completely predictable - it gains or loses the same amount of time every day. This is called systematic drift. The util *hwclock*(8) keeps the file _/etc/adjtime_, that keeps some historical information. For more details see "*The Adjust Function*" and "*The Adjtime File*" sections from *hwclock*(8) man page.
23
24The format of the adjtime file is, in ASCII.
25
26=== First line
27
28Three numbers, separated by blanks:
29
30*drift factor*::
31 the systematic drift rate in seconds per day (floating point decimal)
32
33*last adjust time*::
34 the resulting number of seconds since 1969 UTC of most recent adjustment or calibration (decimal integer)
35
36*adjustment status*::
37 zero (for compatibility with *clock*(8)) as a floating point decimal
38
39=== Second line
40
41*last calibration time*::
42 The resulting number of seconds since 1969 UTC of most recent calibration. Zero if there has been no calibration yet or it is known that any previous calibration is moot (for example, because the Hardware Clock has been found, since that calibration, not to contain a valid time). This is a decimal integer.
43
44=== Third line
45
46*clock mode*::
47 Supported values are *UTC* or *LOCAL*. Tells whether the Hardware Clock is set to Coordinated Universal Time or local time. You can always override this value with options on the *hwclock*(8) command line.
48
49== FILES
50
51_/etc/adjtime_
52
53== SEE ALSO
54
55*hwclock*(8),
56*rtcwake*(8)
57
58include::../man-common/bugreports.adoc[]
59
60include::../man-common/footer-config.adoc[]
61
62ifdef::translation[]
63include::../man-common/translation.adoc[]
64endif::[]