> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MINUTE

> Extracts the minute component.

<div className="e6-meta"><span className="e6-eyebrow e6-eyebrow--quiet">Scalar function</span></div>

Returns NULL for NULL input. Some date/time components also return NULL when the input is outside their supported calendar range.

## Syntax

### Scalar

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
minute(value)
```

## Arguments

| Name | Type | Required | Description |
| - | - | - | - |
| value | TIME or TIMESTAMP | Yes | Temporal value whose component is extracted. |

## Returns

* Type: INTEGER
* Possible values: 0 through 59
* NULL behavior: Returns NULL for NULL input. Some date/time components also return NULL when the input is outside their supported calendar range.

## Properties

| Property | Value |
| - | - |
| Deterministic | Yes |
| Exact result | Yes |

## Usage notes

* Returns an INTEGER component, or NULL for a NULL input.

## Examples

### Extract a component

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT minute(TIMESTAMP '2024-03-15 15:10:45') AS result;
```

| result |
| - |
| 10 |

### NULL input

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT minute(CAST(NULL AS TIMESTAMP)) AS result;
```

| result |
| - |
| NULL |

## Limitations

* String inputs require conversion to a date or timestamp. Use the formats shown here; the example does not cover every date or time format.
* Inputs outside the supported calendar range can return NULL. YEAR and MONTH support a wider range than other fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.