跳转至

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

Supported in: Batch, Faster, Streaming

Converts from timestamp in UTC to epoch milliseconds.

Expression categories: Cast, Datetime

Declared arguments

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

Output type: Long

Examples

Example 1: Base case

Argument values:

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

Output: 1664614800000


Example 2: Null case

Argument values:

  • Timestamp: null

Output: null



中文翻译


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

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

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

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

声明的参数

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

输出类型: Long

示例

示例1:基础情况

参数值:

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

输出: 1664614800000


示例2:空值情况

参数值:

  • 时间戳: null

输出: null