Timestamp to epoch seconds

Supported in: Batch, Streaming

Converts from timestamp in UTC to epoch seconds.

Expression categories: Cast, Datetime

Declared arguments

  • Timestamp - no description
    Expression<Timestamp>

Output type: Long

Examples

Example 1: Base case

Argument values:

  • Timestamp: 2022-10-01T09:01:13.47Z

Output: 1664614873


Example 2: Null case

Argument values:

  • Timestamp: null

Output: null