Hour / Temporal Layer

Extract hours from datetime values, similar to datetime.hour in Python or EXTRACT(HOUR FROM timestamp) in SQL. Returns integers from 0 to 23 in 24-hour format.

Example extractions:

Input DatetimeHourCommon NameNote
2024-01-15 00:30:45012:30 AMMidnight
2024-01-15 12:00:001212:00 PMNoon
2024-01-15 23:59:592311:59 PMEnd of day

Common applications:

  • Business hour analysis
  • Shift scheduling
  • Peak hour identification
  • Day/night pattern analysis
  • Time zone conversions
Table
0
0
Table

Transforms

[, ...]

Select

column

Datetime column to extract hours from. Returns hour in 24-hour format, ignoring minutes and smaller units. Values wrap from 23 to 0 at day boundaries.

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.