| Directives |
|
| Format | SETTIME [time] Where: |
|
| time | Current time of day for the user session. Numeric expression. | |
| Description | Use the SETTIME directive to set or change the current processing time (returned in the TIM, TME, and TMS variables). The value of time must be between 0 and 24 (the desired time of day based on a 24 hour clock). Once set, the time will be continuously updated based on the operating system clock. ProvideX will continuously update the date and time based on the set time until the end of the session or until the execution of a START directive. Then, ProvideX reverts to the operating system's time. Note that this directive calculates an offset from the current operating system date/time. If that date/time is altered after the execution of the SETTIME directive, a corresponding change will be reflected in the values of TIM/TME/TMS. |
|
| *Note* | This directive only affects the user executing the directive. | |
| See Also | TIM System Variable, TME System Variable, TME System Variable, DTE( ) Function. | |
| Example | 0100 PRINT TIM 0110 SETTIME 1.10 0120 PRINT "Current time",TIM RUN 8.51 Current time 1.10 If the OS time were advanced by an hour (i.e., from 8.51 to 9.51), that hour would also be added to the time for the current session, advancing the current session's time to 2.10 and setting TIM, TME and TMS to the new value. |
|