day_of_year

The day of the year, from 1.

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls a null argument gives null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses day_of_year, over the example tables.

Hint
from orders
derive {y = year(day), m = month(day), d = day(day), w = weekday(day), q = quarter(day), doy = day_of_year(day)}

In a plan:

JSON
{
  "args": [
    {
      "col": 5
    }
  ],
  "fn": "day_of_year"
}