---
title: current_timestamp function
description: Learn the syntax of the current\_timestamp function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/current_timestamp
---

# `current_timestamp` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the current timestamp at the start of query evaluation.

> [!NOTE]
> **Beta**
>
> The `precision` argument is available only in Databricks Runtime 19 and above. Values `7` through `9` are in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). For nanosecond-precision support, see [`TIMESTAMP` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/timestamp-type.md).

## Syntax

```
current_timestamp( [ precision ] )
```

## Arguments

* `precision`: An optional `INTEGER` literal. Valid values are `6`, `7`, `8`, and `9`. The default is `6`.

## Returns

A `TIMESTAMP_LTZ(precision)`. If you omit `precision`, the result is a `TIMESTAMP_LTZ(6)`.

The parentheses are optional when you omit `precision`.

## Examples

```sql
> SELECT current_timestamp();
 2020-04-25 15:49:11.914
> SELECT current_timestamp;
 2020-04-25 15:49:11.914

> SELECT current_timestamp(9);
 2020-04-25 15:49:11.914123456
```

## Related functions

* [`current_date` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/current_date.md)
* [`current_timezone` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/current_timezone.md)
* [`getdate` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/getdate.md)
* [`localtimestamp` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/localtimestamp.md)
* [`now` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/now.md)
* [`TIMESTAMP` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/timestamp-type.md)
