【问题标题】:Mosaic-Decisions: Different supported timezones in ExpressionsMosaic-Decisions:表达式中支持的不同时区
【发布时间】:2020-07-08 07:02:09
【问题描述】:

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

【问题讨论】:

    标签: mosaic-decisions


    【解决方案1】:

    是的,您可以使用转换节点中提供的 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/CST6CDTSystemV/CST6

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-29
      • 2020-11-18
      • 2019-08-31
      • 2020-11-30
      相关资源
      最近更新 更多