Legacy Date&Time to Date&Time

This node converts columns from the old Date&Time data type to the new types. It is only useful if you have to use nodes that have not been adapted to the new Date&Time type yet.

Options

Columns to convert
Move columns between the lists to specify which legacy Date&Time columns (old type) should be converted to the new KNIME Date&Time types. Only columns compatible with the legacy Date&Time data type are shown.
Automatic type detection
If enabled the new type for each included column is inferred from the first non-missing cell: the legacy value's components (date / time / both) decide whether Date, Time, Date & time or (optionally) Date & time & zone is chosen.
Manual new type
Choose the target Date&Time type to which all included columns will be converted when automatic type detection is disabled.
  • Date: Outputs values of type Date
  • Time: Outputs values of type Time
  • Date & time: Outputs values of type Date&time (Local)
  • Date & time & zone: Outputs values of type Date&time (Zoned)
Add time zone, if possible
When enabled this option attempts to upgrade legacy values containing both Date & Time components to Date & time & zone by attaching the selected time zone. If a value contains date only or time only no time zone is added.
Time zone
The IANA time zone identifier used either (a) when automatic type detection is enabled and 'Add time zone' is checked, or (b) when manual type selection is active and the chosen type is Date & time & zone.
Output mode
Select how converted columns should appear in the output.
  • Append selected columns: Keep the original columns and add new columns with a configurable suffix.
  • Replace the selected columns: Overwrites the original columns.
Suffix of appended columns
Suffix appended to each converted column when Append selected columns is chosen. Must yield unique column names.

Input Ports

Icon
Input table.

Output Ports

Icon
Output table containing the converted columns.

Popular Successors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.