Elapsed Time - Teradata Warehouse Miner

Teradata Warehouse Miner User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.4
Published
July 2017
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
fcf1492702067123.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

A Teradata Warehouse Miner specific function is provided for calculating in various units the elapsed time from midnight represented by the time portion of a Timestamp or Time expression. Time zones are ignored. By default, the elapsed time is calculated in units of seconds, but may alternatively be requested in minutes, hours or days (fraction of a day). When dragging an Elapsed Time function into a variable, the following tree element is created.

Variable Creation > Input > Variables: SQL Elements pane - Date and Time > Elapsed Time (Seconds)

Columns and/or other expressions/literals that resolve to a time or timestamp can be moved over the (empty) branch of the tree.

Options to compute the elapsed time in seconds, minutes, hours or days (fraction of a day) are set through the Properties panel. Double-click on Elapsed Time, or highlight it and click Properties.

Variable Creation > Input > Variables: SQL Elements pane - Date and Time > Elapsed Time Properties