Skip to main content
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

ArgumentDescription
fieldThe 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 orders
ORDER BY
1
LIMIT 3
Order IDOrdered AtMinute of Hour
O000002025-05-26T09:02:002
O000012025-11-28T09:21:0021
O000022025-07-25T13:56:0056

Compiles to

EXTRACT(MINUTE FROM orders.ordered_at)
DATE_PART(MINUTE, orders.ordered_at)

See also