Mosaic-Decisions:表达式中支持的不同时区

Mosaic-Decisions: Different supported timezones in Expressions

在 Mosaic Decisions Flows 中,我可以看到有一个名为“$currentTime”的系统参数,它给出了当前时间戳。但这是给出 UTC 的当前时间戳。我想将其转换为 CST 时区。有什么办法可以做到吗?

是的,您可以使用转换节点中提供的Convert_Timezone功能。下面是它的语法。

CONVERT_TIMEZONE( column_name, ‘Timezone1’ , ‘Timezone2’);

            Column_name – input time based column.
            Timezone1 – the timezone the column data is in.
            Timezone2 – the timezone in which the column data has to be converted in.

CONVERT_TIMEZONE (NOW(), ‘UTC’ , ‘CST6CDT’ ) -> NOW() 会给你当前时间 同样可以根据需要使用- SystemV/CST6CDT, SystemV/CST6.

您还可以参考用户指南中的转换部分了解更多详细信息[link如下]: https://mosaic.ga.lti-mosaic.com/usermanual/Transformer.html