1 //po4a: entry man manual
4 :man manual: User Commands
5 :man source: util-linux {release-version}
11 lsclocks - display system clocks
19 *lsclocks* is a simple command to display system clocks.
21 It allows to display information like current time and resolution of clocks like
22 CLOCK_MONOTONIC, CLOCK_REALTIME and CLOCK_BOOTTIME.
27 Use JSON output format.
29 *-n*, *--noheadings*::
32 *-o*, *--output* _list_::
33 Specify which output columns to print. See the *OUTPUT COLUMNS*
34 section for details of available columns.
40 Use raw output format.
42 *-r*, *--time* _clock_::
43 Show current time of one specific clock.
45 *--no-discover-dynamic*::
46 Do not try to discover dynamic clocks.
48 *-d*, *--dynamic-clock* _path_::
49 Also display specified dynamic clock.
50 Can be specified multiple times.
53 Do not try to discover RTCs.
55 *-x*, *--rtc* _path_::
56 Also display specified RTC.
57 Can be specified multiple times.
59 *-c*, *--cpu-clock* _pid_::
60 Also display CPU clock of specified process.
61 Can be specified multiple times.
63 include::man-common/help-version.adoc[]
67 Each column has a type. Types are surround by < and >.
76 Name in the form *CLOCK_*
79 Shorter, easier to read name.
82 Current clock timestamp as returned by *clock_gettime()*.
84 ISO_TIME <``string``>::
85 ISO8601 formatted version of *TIME*.
87 RESOL_RAW <``number``>::
88 Clock resolution as returned by *clock_getres*(2).
91 Human readable version of *RESOL_RAW*.
93 REL_TIME <``string``>::
94 *TIME* time formatted as time range.
96 NS_OFFSET <``number``>::
97 Offset of the current namespace to the parent namespace as read from */proc/self/timens_offsets*.
102 mailto:thomas@t-8ch.de[Thomas Weißschuh]
106 *clock_getres*(2) *clock_gettime*(2)
108 include::man-common/bugreports.adoc[]
110 include::man-common/footer.adoc[]
113 include::man-common/translation.adoc[]