Apache nifi 如何创建包含当前小时的属性?

Apache nifi 如何创建包含当前小时的属性?,apache-nifi,Apache Nifi,如何创建包含24小时格式的当前小时的属性 我尝试使用EvaluateJsonPath和UpdateAttribute并创建了一个新参数current\u hour,其值为${now():toNumber():Divide(60*60*1000)} 表达式:Divide(60*60*1000)的这一部分似乎工作不正常 如果现在是15:35,我需要获得15尝试${now():format(“HH”)}

如何创建包含24小时格式的当前小时的属性

我尝试使用
EvaluateJsonPath
UpdateAttribute
并创建了一个新参数
current\u hour
,其值为
${now():toNumber():Divide(60*60*1000)}

表达式
:Divide(60*60*1000)
的这一部分似乎工作不正常

如果现在是15:35,我需要获得
15

尝试
${now():format(“HH”)}