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
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the new column. |
| data | Instant... | 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)
)