basic.time()

Function/BASIC Program, Releases: AP and R83

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

Command Name Type Description
pc.mt Processing Code Mask time conversion.
basic.oconv Function Output conversion function.
basic.timedate Function Returns time and date.
basic.statements Definition Definition of statements and functions.
basic.functions Definition elements in FlashBASIC or Pick/BASIC language expressions, returning a single value in place, as a function of the arguments. A function can be used anywhere a variable or expression is used.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.