Epoch milliseconds to timestamp(纪元毫秒转时间戳)¶
Supported in: Batch, Faster, Streaming
Converts from epoch milliseconds to timestamp in UTC.
Expression categories: Cast, Datetime
Declared arguments¶
- Expression: Expression containing epoch milliseconds to convert.
Expression\
Output type: Timestamp
Examples¶
Example 1: Base case¶
Description: You can convert epoch timestamps in milliseconds to the timestamp type
Argument values:
- Expression: 1673964111000
Output: 2023-01-17T14:01:51Z
Example 2: Null case¶
Description: Null columns remain null
Argument values:
- Expression:
input
| input | Output |
|---|---|
| null | null |
中文翻译¶
纪元毫秒转时间戳¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
将纪元毫秒转换为UTC时间戳。
表达式类别: 类型转换(Cast)、日期时间(Datetime)
声明的参数¶
- 表达式(Expression): 包含待转换的纪元毫秒的表达式。
表达式类型:Double | Long
输出类型: Timestamp
示例¶
示例1:基础案例¶
描述: 您可以将毫秒单位的纪元时间戳转换为时间戳类型
参数值:
- 表达式: 1673964111000
输出: 2023-01-17T14:01:51Z
示例2:空值案例¶
描述: 空列保持为空
参数值:
- 表达式:
input
| input | 输出 |
|---|---|
| null | null |