1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 05:02:10 +02:00
tldr/pages/linux/xclock.md
trk 37ec59449a
xclock: add page (#4224)
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
2020-07-28 16:31:18 +02:00

23 lines
570 B
Markdown

# 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`