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

# `timestamp_micros` 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

Creates a timestamp `expr` microseconds since UTC epoch.

## Syntax

```
timestamp_micros(expr)
```

## Arguments

* `expr`: An integral numeric expression specifying microseconds.

## Returns

A TIMESTAMP.

If `expr` is out of the range representable as a TIMESTAMP, Databricks raises [ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/arithmetic-overflow-error-class.md).

## Common error conditions

* [ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/arithmetic-overflow-error-class.md)

## Examples

```sql
> SELECT timestamp_micros(1230219000123123);
 2008-12-25 07:30:00.123123

> SELECT timestamp_micros(9999999999999999999);
  Error: ARITHMETIC_OVERFLOW
```

## Related functions

* [`timestamp` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/timestamp.md)
* [`timestamp_millis` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/timestamp_millis.md)
* [`timestamp_nanos` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/timestamp_nanos.md)
* [`timestamp_seconds` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/timestamp_seconds.md)
