Skip to main content
Version: Python

Create a table with timeTable

This guide will show you how to create a time table. A time table is a special type of table that adds new rows at a regular, user-defined interval. Its sole column is a timestamp column.

Here, we will make a simple time table that ticks every two seconds. We are using the time_table method. Its sole argument specifies the interval at which the table ticks.

Copy and run the following code in your console:

from deephaven import time_table

result = time_table('00:00:02')
note

The ticks used around the time representation above are single-quotes (‘), not backticks as used around strings (`).

This produces a table with one column (Timestamp) that appends a new row every two seconds.

Time tables are often used as trigger tables, which can: