---
title: "make_timestamp function in Strata | Oplema"
description: "Build a timestamp from separate year, month, day, hour, minute and second values. Seconds can include a fraction. Use it in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/make-timestamp"
updated: "2026-11-04"
---

# make\_timestamp

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

## Try an expression

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

### Expression

```
make_timestamp(1992, 9, 20, 13, 34, 27.123456)
```

### Result

```
1992-09-20 13:34:27.123456
```

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 | 1992-09-20 13:34:27.123 |

## Arguments and types

```
make_timestamp(year, month, day, hour, minute, seconds)
```

**year**

Number

**month**

Number

**day**

Number

**hour**

Number

**minute**

Number

**seconds**

Number

Supported signatures (2)

```
make_timestamp(year: BIGINT) → TIMESTAMP
make_timestamp(year: BIGINT, month: BIGINT, day: BIGINT, hour: BIGINT, minute: BIGINT, seconds: DOUBLE) → 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\_date

Build a date from a year, month and day. It also accepts a struct with those fields or a day count since 1970-01-01.

](https://oplema.com/docs/strata/functions/make-date)[make\_time

Build a time from an hour, minute and seconds.

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

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

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

The timestamp for the given nanoseconds since epoch.

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

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

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