SETTIME
Set System/Task Time of Day
This directive sets the TIM system variable for this task to a specific hour and decimal hour value based on a 24-hour clock.
Syntax
Section titled “Syntax”SETTIME numeric-valuenumeric-value is any number in the range of 0 to 23.999999…
Remarks
Section titled “Remarks”This directive is used to set a value for TIM that is independent of the system value.
The value of the TIM variable is updated by the system based on the system clock (not less than once per second nor more than about ten times per second, depending on the operating system environment).
The value for the time is set on a 24-hour day schedule and in the decimal PRECISION 6 form of HH.hhhhhh [i.e., time runs from 00.000000 (midnight) to 23.999999 (11:59:59.9964 PM)].
Examples
Section titled “Examples”SETTIME 8.5assigns the variable TIM, the value 8.5000, representing 8:30 AM.
SETTIME Xif X = 20.5, TIM is set to indicate 8:30 PM.
See also
Section titled “See also”SETDAY directive
DAY and TIM system variables
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF