# minute

Extracts the minute component from a timestamp.

```tql
minute(x: time) -> int
```

## Description

The `minute` function extracts the minute component from a timestamp as an integer (0-59).

### `x: time`

The timestamp from which to extract the minute.

## Examples

### Extract the minute from a timestamp

```tql
from {
  ts: 2024-06-15T14:30:45.123456,
}
minute = ts.minute()
```

```tql
{
  ts: 2024-06-15T14:30:45.123456,
  minute: 30,
}
```

## See Also

* [`year`](https://preview.docs.tenzir.com/375/375/reference/functions/year.md)
* [`month`](https://preview.docs.tenzir.com/375/375/reference/functions/month.md)
* [`day`](https://preview.docs.tenzir.com/375/375/reference/functions/day.md)
* [`hour`](https://preview.docs.tenzir.com/375/375/reference/functions/hour.md)
* [`second`](https://preview.docs.tenzir.com/375/375/reference/functions/second.md)
* [Work with time](https://preview.docs.tenzir.com/375/375/guides/transformation/work-with-time.md)