# Time variables reference

> All 4 time variables in AlgoBarsX, each with its parameters, defaults, ranges and an example: hour, minute, day_of_week, time_of_day.

Source: https://algobarsx.com/docs/ref-var-time/

### `hour` → int

Hour of the bar time, 0 to 23, in UTC or the configured time zone.

```algobarsx
morning = hour in 8..11
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `minute` → int

Minute of the bar time.

```algobarsx
on_the_hour = minute == 0
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `day_of_week` → int

1 Monday to 7 Sunday.

```algobarsx
friday = day_of_week == 5
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `time_of_day` → time

Clock time of the bar, for windows such as time_of_day between 08:00 and 09:00.

```algobarsx
first_hour = time_of_day between 08:00 and 09:00
```

Works in: strategy, indicator, alert, library. Since 1.0.
