HPlogo Using the X Window System > Chapter 8 Using the X Clients

The `xclock' Client

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

The xclock client displays an analog or digital clock. The digital clock also displays the day, date, time, and year; the format automatically varies for local language custom based on the value of the LANG environment variable.

Figure 8-1 Digital and Analog Clocks

[Digital and Analog Clocks]

The syntax for the xclock client is:

xclock [-options] [&]

For a complete list of xclock options, refer to the xclock man page.

The following example creates a digital clock that updates every 10 seconds.

   xclock -digital -update 10 &

The next example creates an analog clock that chimes every 30 minutes, updates every 5 seconds, and has yellow hands (all the other colors are the default ones).

   xclock -analog -chime -update 5 -hd yellow &