SETTIME Verb - Set System Clock

Syntax

SETTIME num{,ERR=lineref}

Description

For BBj-specific information, see the SETTIME Verb - BBj.

The SETTIME verb sets the system clock.

Parameter

Description

num

A real number that defines the system time. It must be greater than or equal to zero and less than 24 and indicates hours and fractions of hours. For example, 10.5 means 10:30 a.m.

ERR=lineref

Branch to be taken if an error occurs during execution.

PRO/5 guarantees one-second resolution of the system clock. On some systems, SETTIME may be a privileged verb. On these systems, if a user lacks the necessary permissions and executes a SETTIME verb, an !ERROR=18 is generated. The current value of the system clock can be read with the TIM variable.

Examples

1000 SETTIME 14.2

See Also

Verbs - Alphabetical Listing