# \[solved\] Iterate over time range?

**URL:** <https://discourse.gohugo.io/t/solved-iterate-over-time-range/27463>\
**Category:** support\
**Created:** [August 9, 2020, 8:21pm UTC](https://discourse.gohugo.io/t/solved-iterate-over-time-range/27463 "2020-08-09T20:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [August 9, 2020, 8:21pm UTC](https://discourse.gohugo.io/t/solved-iterate-over-time-range/27463/1 "2020-08-09T20:21:01Z")

</div>

Is there a away to iterate over a range of numbers in Hugo? Such that `range $x := 1..3`.

I am trying to create a table of time blocks and then extract the data from a spreadsheet, based on the time entry.

Our schedule table has 3 parallel room, each displayed vertically, using the following code, but the issue is that it does not allow for events of different lengths, hence wanting to move to a time based iteration.

```
    {{ $data := getCSV "," (print "spreadsheets/schedule." $lang ".csv") }}
    {{ range $index, $row := $data }}
    <tr>
       <td>{{ index $row 1 }}</td>
       <td>{{ index $row 2 }}</td>
       <td>{{ index $row 3 }}</td>
       <td>{{ index $row 4 }}</td>
    </tr>
    {{ end }}
```

---

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [August 9, 2020, 8:29pm UTC](https://discourse.gohugo.io/t/solved-iterate-over-time-range/27463/2 "2020-08-09T20:29:33Z")

</div>

A bit more searching shows there is [sequence](https://gohugo.io/functions/seq/):

```
{{ range $i, $sequence := (seq 660 30 1440) }} {{ $i }}: {{ $sequence }} {{ end }}
```
