DB
FunctionsDate & Time

to_hour

Extracts the hour component (0..23) from the input date or timestamp.

to_hour(…) → Int64

Kind · scalar

Extracts the hour component (0..23) from the input date or timestamp.

Part of the Date & Time family.