/
Datetime to Timestamp directive
Datetime to Timestamp directive
The DATETIME-TO-TIMESTAMP directive was introduced in CDAP 6.4.0.
The DATETIME-TO-TIMESTAMP directive converts a datetime value to timestamp with the given time zone.
Syntax
datetime-to-timestamp :column 'timezone'
Usage Notes
The DATETIME-TO-TIMESTAMP directive converts datetime values to timestamp values using the given time zone (UTC by default). Time 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.
If the column is null
applying this directive is a no-op.
Examples
datetime-to-timestamp :col1 'UTC-08:00'
datetime-to-timestamp :col2 'America/Los_Angeles'
, multiple selections available,
Related content
Format Datetime directive
Format Datetime directive
Read with this
Development Environment Setup
Development Environment Setup
More like this
Directives
Directives
Read with this
CDAP Hub Release Log
CDAP Hub Release Log
More like this
Parse as Datetime directive
Parse as Datetime directive
Read with this
DaysSinceFromDate function
DaysSinceFromDate function
More like this
Created in 2020 by Google Inc.