On this page
Kater SQL Functions Date grains
Date grains
A grain gives the start of the period that a date falls in, so rows group by day, week, month, quarter or year.
The Timeframe menu writes them. See Dates.
| Function | What it does |
|---|---|
KATER__DATE | The date, without its time of day. |
KATER__WEEK | The first day of the week the date is in. |
KATER__MONTH | The first day of the month the date is in. |
KATER__QUARTER | The first day of the quarter the date is in. |
KATER__YEAR | The first day of the year the date is in. |
KATER__HOUR | The start of the hour the timestamp is in. |
KATER__MINUTE | The start of the minute the timestamp is in. |
KATER__SECOND | The start of the second the timestamp is in. |
KATER__MILLISECOND | The start of the millisecond the timestamp is in. |