为什么 AZURE DATA FACTORY 中的convertotimezone() 函数无法用于我的公司登录?

问题描述 投票:0回答:1

我没有看到 Converttotimezone() 函数在 azure 数据工厂表达式生成器中不可用,我正在尝试将一个日期列从 csv 文件保存到 oracle 列 TIMSTAMP(6) 带时区

从微软网址尝试了很多东西

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones

azure oracle11g timestamp-with-timezone
1个回答
0
投票

您可以使用 ADF 中的

toTimestamp()
功能。因为,Azure 数据工厂表达式生成器中没有名为
converttotimezone()
的函数。

语法:

toTimestamp(_<string>_  : any, [_<timestamp format>_  : string], [_<time zone>_  : string]) => timestamp

使用 Azure 数据工厂中的

toTimestamp
函数将字符串值转换为
PST
时区中的时间戳值的示例:

toTimestamp(date_col, 'yyyy-MM-dd HH:mm:ss', 'PST')

enter image description here

这会将

date_col
转换为
PST
时区的时间戳值。您可以根据您的时区使用此功能。

© www.soinside.com 2019 - 2024. All rights reserved.