Azure 数据工厂:如何将 UTC 日期时间转换为 unix 时间戳
Azure Data Factory: How to convert UTC datetime to unix Timestamp
如何将 UTC 日期时间转换为 unix 时间戳?示例:2021-11-08T07:25:00Z 至 1636385119
在 ADF 管道中:
@{div(sub(ticks(utcNow()), ticks('1970-01-01')),10000000)}
在数据流中:
如文档中所述:Convert to dates or timestamps
toLong( currentUTC() - toTimestamp('1970-01-01 00:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS') ) * 1000l
如何将 UTC 日期时间转换为 unix 时间戳?示例:2021-11-08T07:25:00Z 至 1636385119
在 ADF 管道中:
@{div(sub(ticks(utcNow()), ticks('1970-01-01')),10000000)}
在数据流中:
如文档中所述:Convert to dates or timestamps
toLong( currentUTC() - toTimestamp('1970-01-01 00:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS') ) * 1000l