On this page
Kater SQL Functions Date parts
KATER__MINUTE_OF_HOUR
The minute of its hour, from 0 to 59.
Family: Date parts
Syntax
KATER__MINUTE_OF_HOUR(field)Arguments
| Argument | Description |
|---|---|
field | The timestamp, or a time of day. |
Returns
A whole number. The field menu writes @format plain beside it, so it shows without a thousands separator.
Usage notes
- A date has no time of day, so the compiler refuses it on a date.
Example
This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.
SELECT orders.order_id AS "Order ID", orders.ordered_at AS "Ordered At", DIMENSION('ordered_at_minute_of_hour', KATER__MINUTE_OF_HOUR(orders.ordered_at)) AS "Minute of Hour"FROM kater_dataset.orders AS ordersORDER BY 1LIMIT 3| Order ID | Ordered At | Minute of Hour |
|---|---|---|
| O00000 | 2025-05-26T09:02:00 | 2 |
| O00001 | 2025-11-28T09:21:00 | 21 |
| O00002 | 2025-07-25T13:56:00 | 56 |
Compiles to
EXTRACT(MINUTE FROM orders.ordered_at)DATE_PART(MINUTE, orders.ordered_at)