Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

suntools(1)

date(1)

CLOCK(1)  —  USER COMMANDS

NAME

clock, clocktool − display the time in a window

SYNOPSIS

clock [ −s ] [ −t ] [ −r ] [ −d mdyaw ] [ −f ]

DESCRIPTION

clock is a standard tool provided with the SunView environment. 

clock displays the current time in its own window.  In its open state, clock shows the date and time textual form.  In its closed state, clock appears as a clock face which keeps time. 

Note:  In previous releases clock was known as clocktool.  In the current release, clocktool is retained as a symbolic link to clock. 

OPTIONS

−rcauses clock to use a square face with roman numerals in the iconic state.  This replaces the default round clock face. 

−ddisplay date information in a small area just below the clock face.  The date information to be displayed may include: mthe month,
dthe day of the month (1-31),
ythe year,
athe string AM or PM, as appropriate,
wthe day of the week (Sun−Sat).  There is only room for 3 of these, but any 3 may be displayed in any sequence.

−fDisplay the date and day of week on the clock face. 

−sstart clock with the seconds turned on.  By default, the clock starts with seconds turned off, and updates every minute.  With seconds turned on, it updates every second, and, if iconic, displays a second hand. 

−tTest mode — ignore the real time, and instead run in a loop continuously incrementing the time by one minute and displaying it. 

clock also accepts all of the generic tool arguments discussed in suntools(1). 

When open, clock listens for keyboard input, toggling its state on four characters:

s or Stoggles the display of seconds. 

t or Ttoggles the ‘test’ mode. 

SEE ALSO

suntools(1), date(1)

FILES

/usr/lib/fonts/fixedwidthfonts/sail.r.6

BUGS

If you reset the system time, clock will not reflect the new time until you change its state — open it if closed, close it if open.  To reset the system time, see date(1). 

The date display doesn’t go well with the round clock face. 

The clock sometimes freezes.  Bringing up the Frame Menu will unstick it. 
 
 

Sun Release 3.2  —  Last change: 29 May 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026