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

# `current_time` function

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

> [!NOTE]
>
> Databricks Runtime 18 is newer than Databricks Runtime 18.0, 18.1, and 18.2. Features that would previously have shipped as a later numbered version now ship as dated updates to Databricks Runtime 18 instead. For details, see [About unified release notes](https://docs.databricks.com/gcp/en/release-notes/runtime/18.md#unified-format).

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md).

Returns the current time at the start of query evaluation. All calls of `current_time` within the same query return the same value.

## Syntax

```
current_time( [ precision ] )
```

## Arguments

* `precision`: An optional `INTEGER` literal from `0` through `9` that specifies the number of fractional-second digits. The default is `6`.

## Returns

A [`TIME`](https://docs.databricks.com/gcp/en/sql/language-manual/data-types/time-type.md).

The parentheses are optional when no `precision` argument is given.

## Examples

```sql
> SELECT current_time();
  16:57:04.304361

> SELECT current_time;
  16:57:04.304361

> SELECT current_time(0);
  16:57:04

> SELECT current_time(3);
  16:57:04.304
```

## Related functions

* [`localtime` function](https://docs.databricks.com/gcp/en/sql/language-manual/functions/localtime.md)
* [`current_timestamp` function](https://docs.databricks.com/gcp/en/sql/language-manual/functions/current_timestamp.md)
* [`current_date` function](https://docs.databricks.com/gcp/en/sql/language-manual/functions/current_date.md)
* [`TIME` type](https://docs.databricks.com/gcp/en/sql/language-manual/data-types/time-type.md)
