minute
Get the minute, from 0 to 59, from a date or timestamp.
Try an expression
In Formula, enter the expression and set Output type to BIGINT.
Expression
minute(timestamp '2021-08-03 11:59:44.123456')Result
59To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
minute(ts)- ts
- Date, Interval, Time, Timestamp
Supported signatures (7)
minute(ts: DATE) → BIGINT
minute(ts: INTERVAL) → BIGINT
minute(ts: TIME WITH TIME ZONE) → BIGINT
minute(ts: TIME) → BIGINT
minute(ts: TIMESTAMP WITH TIME ZONE) → BIGINT
minute(ts: TIMESTAMP) → BIGINT
minute(ts: TIME_NS) → BIGINTThe 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.
Function metadata from DuckDB, used under the MIT license.