From 37ec59449a1ea2d389fee929fc4e38150892c5b2 Mon Sep 17 00:00:00 2001 From: trk Date: Tue, 28 Jul 2020 20:31:18 +0600 Subject: [PATCH] xclock: add page (#4224) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Starbeamrainbowlabs Co-authored-by: Zlatan Vasović --- pages/linux/xclock.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/xclock.md diff --git a/pages/linux/xclock.md b/pages/linux/xclock.md new file mode 100644 index 000000000..239bffea9 --- /dev/null +++ b/pages/linux/xclock.md @@ -0,0 +1,23 @@ +# xclock + +> Display the time in analog or digital form. + +- Display an analog clock: + +`xclock` + +- Display a 24-hour digital clock with the hour and minute fields only: + +`xclock -digital -brief` + +- Display a digital clock using an strftime format string (see strftime(3)): + +`xclock -digital -strftime {{format}}` + +- Display a 24-hour digital clock with the hour, minute and second fields that updates every second: + +`xclock -digital -strftime '%H:%M:%S' -update 1` + +- Display a 12-hour digital clock with the hour and minute fields only: + +`xclock -digital -twelve -brief`