LinuxCommandLibrary

xclock

TLDR

Display analog clock

$ xclock
copy
Display digital clock (24-hour brief)
$ xclock -digital -brief
copy
Digital with custom format
$ xclock -digital -strftime [format]
copy
Digital with seconds update
$ xclock -digital -strftime '%H:%M:%S' -update 1
copy
12-hour digital clock
$ xclock -digital -twelve -brief
copy

SYNOPSIS

xclock [OPTIONS]

DESCRIPTION

xclock displays the time in analog or digital form in an X11 window. It can show various time formats and update at configurable intervals.
The analog display shows a traditional clock face. Digital mode supports strftime formatting for custom displays.

PARAMETERS

-digital

Display digital clock instead of analog
-brief
Show only hours and minutes
-twelve
Use 12-hour format
-strftime FORMAT
Custom time format (see strftime)
-update SECONDS
Update interval

CAVEATS

X11 only. Requires X server running. Part of X.Org utilities.

SEE ALSO

date(1), strftime(3)

Copied to clipboard