Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 487 Bytes

File metadata and controls

33 lines (24 loc) · 487 Bytes
description
This section contains reference documentation for the hour function.

hour

Returns the hour of the day from the given epoch millis in UTC or specified timezone. The value ranges from 0 to 23.

Signature

hour(tsInMillis)

hour(tsInMillis, timeZoneId)

Usage Examples

select hour(1639351800000) AS hour
FROM ignoreMe
hour
23
select hour(1639351800000, 'CET') AS hour
FROM ignoreMe
hour
0