Current Datetime directive

The CURRENT-DATETIME directive was introduced in CDAP 6.4.0.

The CURRENT-DATETIME directive generates the current datetime using the given zone or UTC (by default). This directive writes results to a new column.

Syntax

current-datetime :column 'timezone'

Usage Notes

The CURRENT-DATETIME directive generates the current datetime using the given zone or UTC (by default). Zone can be region based string like America/Los_Angeles, Europe/Paris, simple offsets like +08:00, or prefix and offset like UTC+01:00, GMT+08:00, UT+04:00.

Examples

current-datetime :col1 'UTC-08:00'

current-datetime :col2 'America/Los_Angeles'

Created in 2020 by Google Inc.