Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Databricks SQL
Databricks Runtime
Returns the current timestamp at the start of query evaluation.
This function is a synonym for current_timestamp.
Important
The precision argument is available only in Databricks Runtime 19 and above. Values 7 through 9 are in Beta. For nanosecond-precision support, see TIMESTAMP type.
Syntax
now( [ precision ] )
Arguments
precision: An optionalINTEGERliteral. Valid values are6,7,8, and9. The default is6.
Returns
A TIMESTAMP_LTZ(precision). If you omit precision, the result is a TIMESTAMP_LTZ(6).
Examples
> SELECT now();
2020-04-25 15:49:11.914
> SELECT now(9);
2020-04-25 15:49:11.914123456