/
Current Datetime directive
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'
, multiple selections available,
Related content
Datetime to Timestamp directive
Datetime to Timestamp directive
Read with this
Timestamp to Datetime directive
Timestamp to Datetime directive
Read with this
Diff Date directive
Diff Date directive
Read with this
Parse as Simple Date directive
Parse as Simple Date directive
Read with this
Directives
Directives
Read with this
Set Type directive
Set Type directive
Read with this
Created in 2020 by Google Inc.