TIME()

TIME()

Top  Previous  Next

 

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.

 

 

See the SYSTEM() function for a way to return the time of day to millisecond precision.

 

 

Example

 

DISPLAY OCONV(TIME(), "MTS")

 

This statement displays the time in the form hh:mm:ss using the 24 hour clock.

 

 

See also:

@TIME, DATE(), EPOCH()