> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/modeling/filters/operators/hour-of-day",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# hour_of_day

> Filters time fields by the hour of the day.

Filters time fields by the hour of the day. Returns rows where the timestamp falls within the specified hour.

## Syntax

```yaml theme={null}
<time_field>:
  hour_of_day: <hour_number>
```

## Properties

<ParamField path="time_field" type="string" required>
  The time/timestamp field to filter on, specified in the format `view_name.field_name`.
</ParamField>

<ParamField path="hour_of_day" type="number" required>
  The hour of the day to filter for. Must be a number between `0` (midnight) and `23` (11 PM).
</ParamField>

## Examples

```yaml title="Time falls between 9-9:59 AM" theme={null}
users.created_at:
  hour_of_day: 9
```

```yaml title="Time falls between 12-1 AM" theme={null}
events.event_time:
  hour_of_day: 0
```
