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:00:00Z

Output: 1664614800


Example 2: Null case

Argument values:

  • Timestamp: null

Output: null