TIME function

Syntax

TIME ( )

Description

Use the TIME function to return a string value expressing the internal time of day. The internal time is the number of seconds that have passed since midnight to the nearest thousandth of a second (local time).

The parentheses must be used with the TIME function to distinguish it from a user-named variable called TIME. However, no arguments are required with the TIME function.

UNIX System V

The time is returned only to the nearest whole second.

If the TIME.MILLISECOND option of the $OPTIONS statement is set, the TIME function returns the system time in whole seconds.

Example

PRINT TIME()

This is the program output:

40663.842