---
title: "make_timestamp_ns function in Strata | Oplema"
description: "Build a nanosecond-precision timestamp from a count of nanoseconds since 1970-01-01. Write it as make_timestamp_ns(nanos) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/make-timestamp-ns"
updated: "2026-11-04"
---

# make\_timestamp\_ns

The timestamp for the given nanoseconds since epoch.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
make_timestamp_ns(1667810584123456789)
```

### Result

```
'2022-11-07 08:43:04.123456789'
```

The expression returns `TIMESTAMP_NS`. Formula stores it as `VARCHAR` in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 2022-11-07 08:43:04.123456789 |

## Arguments and types

```
make_timestamp_ns(nanos)
```

**nanos**

Number

Supported signatures (1)

```
make_timestamp_ns(nanos: BIGINT) → TIMESTAMP_NS
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[make\_timestamp\_ms

Build a timestamp from the number of milliseconds since 1970-01-01.

](https://oplema.com/docs/strata/functions/make-timestamp-ms)[to\_timestamp

Convert seconds since 1970-01-01 to a timestamp with time zone.

](https://oplema.com/docs/strata/functions/to-timestamp)[epoch\_ns

Extract the epoch component in nanoseconds from a temporal type.

](https://oplema.com/docs/strata/functions/epoch-ns)[make\_timestamp

Build a timestamp from a year, month, day, hour, minute and seconds.

](https://oplema.com/docs/strata/functions/make-timestamp)

[Browse dates & times](https://oplema.com/docs/strata/functions#dates-&-times) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/timestamp.html#make_timestamp_nsnanoseconds)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
