quarterOfYear

Syntax

quarterOfYear(X)

Arguments

X is a scalar/vector of type DATE, MONTH, DATETIME, TIMESTAMP or NANOTIMESTAMP.

Details

For each element in X, return a number from 1 to 4 indicating which quarter of the year it falls in.