跳转至

Timestamp to epoch seconds(时间戳转纪元秒(Timestamp to epoch seconds))

Supported in: Batch, Faster, Streaming

Converts from timestamp in UTC to epoch seconds.

Expression categories: Cast, Datetime

Declared arguments

  • Timestamp: Timestamp to convert to epoch seconds.
    Expression\

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



中文翻译


时间戳转纪元秒(Timestamp to epoch seconds)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

将UTC时间戳转换为纪元秒(epoch seconds)。

表达式类别: 类型转换(Cast)、日期时间(Datetime)

声明的参数

  • 时间戳(Timestamp): 要转换为纪元秒的时间戳。
    表达式\

输出类型: Long

示例

示例1:基础情况

参数值:

  • 时间戳: 2022-10-01T09:01:13.47Z

输出: 1664614873


示例2:空值情况

参数值:

  • 时间戳: null

输出: null