Skip to main content
Version: Java (Groovy)

instantCol

The instantCol method creates a column containing date-time values.

note

This method is commonly used with newTable to create tables.

Syntax

instantCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

dataInstant...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of date-times named DateTimes.

firstTime = parseInstant("2021-07-04T08:00:00 ET")
secondTime = parseInstant("2021-09-06T12:30:00 ET")
thirdTime = parseInstant("2021-12-25T21:15:00 ET")

result = newTable(
instantCol("DateTimes", firstTime, secondTime, thirdTime)
)