|Command||basic.time() Function/BASIC Program
Applicable release versions: AP, R83
|Category||BASIC Program (486)|
|Description||returns the current system time in its internal format, representing the number of seconds past midnight.
The parentheses following the function are required, and never contain any arguments.
print 'the time is ':oconv(time(),'mth') This example outputs the current system time in external format. start.time=time() loop until (time()-start.time)>30 or system(14) do rqm repeat This is an example of a loop which terminates under two conditions. Either a key is entered on the keyboard (system(14)) or 30 seconds has passed without any keystrokes. If no keys are waiting and the timeout is not over, sleep for a second and check again.