---
title: "to_minutes function in Strata | Oplema"
description: "Turn a number into a minute interval for date math, so that 5 becomes 00:05:00. Write it as to_minutes(integer) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/to-minutes"
updated: "2026-11-04"
---

# to\_minutes

Construct a minute interval.

## Try an expression

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

### Expression

```
to_minutes(5)
```

### Result

```
'00:05:00'
```

The expression returns `INTERVAL`. 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 | 00:05:00 |

## Arguments and types

```
to_minutes(integer)
```

**integer**

Number

Supported signatures (1)

```
to_minutes(integer: BIGINT) → INTERVAL
```

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

[to\_centuries

Construct a century interval.

](https://oplema.com/docs/strata/functions/to-centuries)[to\_days

Turn a number into an interval of that many days.

](https://oplema.com/docs/strata/functions/to-days)[to\_decades

Construct a decade interval.

](https://oplema.com/docs/strata/functions/to-decades)[to\_hours

Construct an hour interval.

](https://oplema.com/docs/strata/functions/to-hours)

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

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