Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache nifi 如何为日期值查找一年中的星期?_Apache Nifi - Fatal编程技术网

Apache nifi 如何为日期值查找一年中的星期?

Apache nifi 如何为日期值查找一年中的星期?,apache-nifi,Apache Nifi,我的流具有属性“05-05-2015”。我需要在NiFi中查找日期的星期 For example: if date is 05 then it is belongs to 1st week of the year. 我不应该在“发现”周使用脚本/程序 我需要找出只使用NiFi表达式语言 有人能提出这样做的建议吗?假设eee是您的属性 然后表达 ${eee:toDate('MM-dd-yyyy'):format('u E')} 输出: 2周二 格式参考: 假设eee是您的属性 然后表达 ${

我的流具有属性“05-05-2015”。我需要在NiFi中查找日期的星期

For example:

if date is 05 then it is belongs to 1st week of the year.
我不应该在“发现”周使用脚本/程序

我需要找出只使用NiFi表达式语言


有人能提出这样做的建议吗?

假设
eee
是您的属性

然后表达

${eee:toDate('MM-dd-yyyy'):format('u E')}
输出:
2周二

格式参考:


假设
eee
是您的属性

然后表达

${eee:toDate('MM-dd-yyyy'):format('u E')}
输出:
2周二

格式参考: