TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-362
#SETSYSTEMCLOCK Built-In Function (Super-
Group Only)
SYSTEMCLOCK_SET_ description in the Guardian Procedure Calls Reference
Manual. If not, the error result is -1.
Considerations
•
The #SETSYSTEMCLOCK built-in function calls the SETSYSTEMCLOCK system
procedure.
•
If you use #SETSYSTEMCLOCK to set the system clock forward or backward two
minutes or less, the system adjusts the clock in small increments rather than
setting it to the new time. Adjusting the clock forward two minutes takes about 33
hours. Adjusting the clock back two minutes takes about 14 days.
If you issue two SETSYSTEMCLOCK commands in less than ten seconds, the
system stops any ongoing adjustment and sets the clock to the second value.
Example
This example calls #SETSYSTEMCLOCK and returns an error if you do not have
super-group capability:
#FRAME
#PUSH tstamp
[#IF [#SETSYSTEMCLOCK tstamp 0] |THEN|
#OUTPUT System time not changed. Insufficient capability.
]
#UNFRAME