---
title: "make_timestamp_ms function in Strata | Oplema"
description: "Build a timestamp from the number of milliseconds since 1970-01-01. Write it as make_timestamp_ms(ms) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/make-timestamp-ms"
updated: "2026-11-04"
---

# make\_timestamp\_ms

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

## Try an expression

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

### Expression

```
make_timestamp_ms(1667810584123)
```

### Result

```
2022-11-07 08:43:04.123
```

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.123 |

## Arguments and types

```
make_timestamp_ms(nanos)
```

**nanos**

Number

Supported signatures (1)

```
make_timestamp_ms(nanos: BIGINT) → TIMESTAMP
```

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\_ns

The timestamp for the given nanoseconds since epoch.

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

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

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

Extract the epoch component in microseconds from a temporal type.

](https://oplema.com/docs/strata/functions/epoch-us)[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_msmilliseconds)

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