toTime() 函数
toTime()
将 _value
列中的所有值转换为时间类型。
支持的数据类型
- string (RFC3339 时间戳)
- int
- uint
toTime()
将所有数值输入值视为纳秒纪元时间戳。
函数类型签名
(<-tables: stream[{A with _value: B}]) => stream[{A with _value: B, _value: time}]
有关更多信息,请参阅 函数类型签名。
参数
tables
输入数据。 默认值为管道转发数据 (<-
)。
示例
将整数 _value 列转换为时间
data
|> toTime()
此页面是否对您有帮助?
感谢您的反馈!