SETCLOCK

This command alters the system time or system time zone.

SYNTAX

8 DATE= date spec; TIME= time spec ￿ ;NOW;GRADUAL ￿ 9

SETCLOCK > CORRECTION= correction spec

>

< TIMEZONE= time zone spec

=

:

;

> ;CANCEL

>

Parameters

date spec A speci￿cation of local date in the form mm/dd/yy[yy] . The year may be expressed in t wo or four digits. If a date is provided, a time must also be provided.

time spec A speci￿cation of local time in the form hh:mm[:ss] where seconds are optional. This speci￿cation uses a 24-hour cloc k; it is not permissible to specify time using A.M. or P .M. If a time is provided, a date m ust also be provided.

The operating system will experience problems if the system date and time are too close to the base time of midnigh t, January 1, 1970. Therefore, for proper system operation this command requires the date and time to be later than ten minutes past midnigh t on January 1, 1970.

correction spec An integer specifying the desired c hange in the system time. The units are seconds. Th us a positive correction will cause the system clock to advance by the speci￿ed number of seconds, while a negative correction will cause the system cloc k to slow by the speci￿ed number of seconds.

time zone spec A speci￿cation of the time zone in the form hh:mm, preceded by a required \W" or \E" to specify the W estern or Eastern Hemisphere. Thus a speci￿cation of W7:00 represen ts a seven-hour displacemen t from Universal Time (GMT) with the time zone being in the Western Hemisphere.

2-238 MPE/iX Commands