basic.time()
Returns current time in internal format.
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.
Example
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.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
