Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

CLOCK Utility
Purpose: To provide an on-screen clock.
Format: CLOCK [DIGITAL] [<LEFT>] [<TOP>] [<WIDTH>] [<HEIGHT>] [24HOUR] [SECONDS] [DATE] [PUBSCREEN <public screen name>]
Template: DIGITAL/S, LEFT/N, TOP/N, WIDTH/N, HEIGHT/N, 24HOUR/S, SECONDS/S, DATE/S, FORMAT/N, PUBSCREEN/K
Path: SYS:Utilities/Clock
CLOCK enables you to display an on-screen clock. The DIGITAL option opens a digital clock.

The LEFT, TOP, WIDTH, and HEIGHT options allow you to specify the size and position of the clock. The keywords are optional; however, the clock understands numerical arguments by their position, as outlined below:

1st number The clock will open <n> pixels from the left edge of the screen.
2nd number The clock will open <n> pixels from the top of the screen.
3rd number The clock will be <n> pixels wide.
4th number The clock will be <n> pixels high.

For example, if you only wanted to specify the width and height of the clock, you would have to use the WIDTH and HEIGHT keywords. If you only entered two numbers, the clock would interpret them as the LEFT and TOP positions.

WIDTH and HEIGHT are not available if you use the DIGITAL option. You cannot change the size of the digital clock, although you can specify its position.

If the SECONDS option is specified, the seconds are displayed.

If the DATE option is specified, the date is displayed.

The PUBSCREEN option can be used to specify a <public screen name> where CLOCK should open.

Example 1:

To open a clock that is 75 pixels from the left edge of the screen, 80 pixels from the top edge of the screen, 300 pixels wide and 100 pixels high, enter:

3.OS4:> CLOCK 75 80 300 100

Example 2:

To use the SECONDS, DATE and 24HOUR options, enter:

3.OS4:> CLOCK SECONDS DATE 24HOUR

Example 3:

To open a digital clock that is 320 pixels from the left edge of the screen, and in the screen's title bar (0 pixels from the top), enter:

3.OS4:> CLOCK DIGITAL 320 0


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.