datetime_col

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

Note

This method is commonly used with new_table to create tables.

Syntax

Parameters

ParameterTypeDescription
namestr

The name of the new column.

dataSequence[Any]

A sequence of date-time values. This can be a list, tuple, or other sequence type.

Returns

An InputColumn.

Example

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