hourOfDay

Syntax

hourOfDay(X)

Details

For each element in X, return a number from 0 to 23 indicating which hour of the day it falls in.

Parameters

X is a scalar/vector of type TIME, MINUTE, SECOND, DATETIME, TIMESTAMP, NANOTIME or NANOTIMESTAMP.

Returns

A scalar or vector of the INT type.