CURRENT_TIME

functionsupportedCore SQL functions

docs.snowflake.com ↗

Context functions

Returns the current time for the system.

Syntax

supportedpartialnot supportednot scored

CURRENT_TIME( [ <fract_sec_precision> ] )

CURRENT_TIME

Parameters

NameRequiredDescription
fract_sec_precisionrequiredThis optional argument indicates the precision with which to report the time. For example, a value of 3 says to use 3 digits after the decimal point (i.e. to specify the time with a precision of milliseconds). The default precision is 9 (nanoseconds). Valid values range from 0 - 9. However, most platforms do not support true nanosecond precision; the precision that you get might be less than the precision you specify. In practice, precision is usually approximately milliseconds (3 digits) at most. Note Fractional seconds are only displayed if they have been explicitly set in the TIME_OUTPUT_FORMAT parameter for the session (e.g. 'HH24:MI:SS.FF').

Returns

Returns a value of type TIME.

Usage notes