This section contains reference documentation for the quarter function.
Last updated 2 years ago
Returns the quarter of the year from the given epoch millis in UTC or specified timezone. The value ranges from 1 to 4
quarter(tsInMillis)quarter(tsInMillis, timeZoneId)
quarter(tsInMillis)
quarter(tsInMillis, timeZoneId)
select quarter(1633046399000) AS quarter FROM ignoreMe
select quarter(1633046399000, 'UTC') AS quarter FROM ignoreMe
select quarter(1633046399000, 'CET') AS quarter FROM ignoreMe
3
4