2025-03-14 21:59:59 -06:00
|
|
|
# xclock
|
|
|
|
|
|
|
|
|
|
> Display the time in analog or digital form.
|
|
|
|
|
> More information: <https://manned.org/xclock>.
|
|
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Display a 24-hour digital clock with the hour, minute, and second fields that updates every second:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`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`
|