Skip to main content
Version: Python

time_table

The time_table method creates a time table that adds new rows at a specified interval. The resulting table has one date-time column, Timestamp.

Syntax

time_table(period: str, start_time: str = None)

Parameters

ParameterTypeDescription
periodstr

The time interval between new row additions.

start_timestr

The start time for adding new rows.

Returns

A ticking time table that adds new rows at the specified interval.

Example

The following example creates a time table that adds one new row every second.

from deephaven import time_table

result = time_table("00:00:01")

The following example creates a time table that adds one new row every second from the given start time.

from deephaven import time_table

result = time_table("00:00:01", start_time="2021-08-06T13:21:00 NY")