xclock Command Purpose Continuously displays the current time of day. Syntax xclock [ -b Number] [ -display Host:Number] [ -geometry Geometry] [ -analog | -digital] [ -bd Color] [ -bg Color] [ -bw Number] [ -chime] [ -fg Color] [ -fn Font] [ -hd Color] [ -help] [ -hl Color] [ -padding Number] [ -rv] [ -update Seconds] [ -xrm ResourceString] Description The xclock command gets the time from the system clock, and displays and updates it in the form of either a digital or an analog clock. Flags -analog Sets the analog display mode, which is the default mode. Draws a conventional 12-hour clock face with ticks for each minute and stroke marks on each hour. -b Number Specifies the width in pixels of the padding between the window border and the clock text or picture. The default is 10 in the digital clock and 8 on an analog clock. -bd Color Specifies the border color on color displays. The de- fault is black. -bg Color Specifies the color of the background on color displays. The default is white. -bw Number Specifies the width in pixels of the border. The de- fault is 1. -chime Specifies the sounding of a chime once on the half hour and twice on the hour. -digital Sets the digital display mode. Displays the date and time in digital form. The default is analog. -display Host:Number Identifies the host name and display number where the clock is to run. Normally the host name and display number are found in the DISPLAY environment variable. -fg Color Determines the color of the text and tick marks on color displays. The default is black. -fn Font Specifies a font for use instead of the default font. Any fixed-width font can be used. The default is Rom14. -geometry Geometry Specifies the location and dimensions of the window as defined in the geometry specifications. -hd Color Specifies the color of the hands in analog mode on color displays. The default is black. -help Prints a brief summary of the allowed options. -hl Color Specifies the highlight color. For example, the out- line of the hands of the analog clock can be highlighted with this color. The default is black. -padding Number Specifies the width in pixels of the padding between the window border and the clock text or picture. The de- fault is 10 on a digital clock and 8 on an analog clock. -rv Reverses the foreground and background colors. -update Seconds Specifies the frequency in seconds that the xclock command updates its display. If the xclock window is ob- scured and then exposed, the xclock command overrides this and redisplays immediately. The default update frequency is 60 seconds. The specification of an update frequency greater than 30 seconds disables the second hand in the analog mode. -xrm ResourceString Specifies a resource string to use. .Xdefaults Keywords Use the following keywords to set the defaults for the xclock command. See Using .Xdefaults Keywords in User Interface Pro- gramming Concepts Volume 1 for specific information about how to use keywords to set defaults such as the color, location, and size of windows. analog Specifies an analog clock instead of a digital clock. background Specifies the color of the background on color displays. border Determines the color of the highlighted border on color displays. borderWidth Specifies the width of the window border in pixels. The default is 1. chime Specifies whether a bell sounds on the hour and half hour. font Specifies the font for the digital clock. foreground Specifies the color of the text and tick marks on color displays. geometry Specifies the location or dimensions of the window. hands Specifies the color of the hands in the analog clock on color displays. height Specifies the height of the clock. The default for the analog clock is 164 pixels. The default for the digital clock is whatever is needed to hold the clock when displayed in the chosen font. highlight Specifies the color of the outline of the hands in the analog clock on color displays. mode Specifies whether the xclock command starts a digital or analog clock by default. padding Specifies the amount of internal padding in pixels. The default is 10 on a digital clock and 8 on an analog clock. reverseVideo Reverses the foreground and background color. update Specifies the frequency in seconds with which the xclock command updates its display. width Specifies the width of the clock. The default for the ana- log clock is 164 pixels. The default for the digital clock is whatever is needed to hold the clock when displayed in the chosen font. Implementation Specifics This command is part of AIXwindows Run Time Environment in AIXwindows Environment/6000. Related Information Enhanced X-Windows Commands Overview in User Interface Program- ming Concepts Volume 1. Enhanced X-Windows Overview in User Interface Programming Con- cepts Volume 1.