TIME() |
|
|
The TIME() function returns the current time as the number of seconds since midnight.
Format
TIME()
The TIME() function returns the number of seconds since midnight within the user's time zone as an integer value. The OCONV() function can be used to format this in a number of ways for display.
The default behaviour of the TIME() function is to return an integer number of seconds. Enabling the TIME.MS setting of the $MODE compiler directive causes the return value of the TIME() function to have a fractional part to millisecond precision.
Use of the SYSTEM() function with key 1082 (SYS$TIME.LOCAL.MS) returns the time of day as an integer number of milliseconds since midnight.
Example
DISPLAY OCONV(TIME(), "MTS")
This statement displays the time in the form hh:mm:ss using the 24 hour clock.
See also: |