| THEN | ELSE statement.block | Index Level | TIMEDATE |
| Syntax | variable = TIME() |
| Category | BASIC |
| Type | Function |
| 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. |
| Options | |
| See Also | mt (mask time) OCONV TIMEDATE statements & functions functions |
| 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. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| THEN | ELSE statement.block | Index Level | TIMEDATE |