CURRENT_TIME: Obtaining the Time

How to:

The CURRENT_TIME function returns the current time of the operating system in the form HHMMSS. You may specify the number of decimal places for fractions of a second--0, 3, or 6 places. Zero (0) places is the default.


Top of page

x
Syntax: How to Obtain the Current Time
CURRENT_TIME[(precision)]

where:

precision

Integer constant

Is the number of decimal places for fractions of a second. Possible values are 0, 3, and 6.

This function returns the time (format: HHIS if no decimal places; HHISs if 3 decimal places; HHISsm if 6 decimal places).



Example: Obtaining the Current Time

At exactly half past 11 AM:

CURRENT_TIME returns 113000.

CURRENT_TIME(3) returns 113000000.

CURRENT_TIME(6) returns 113000000000.


iWay Software