如何创建包含当前时间的属性?

How to create an attribute that contains current hour?

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

我尝试使用 EvaluateJsonPathUpdateAttribute 并使用以下值创建了一个新参数 current_hour ${now():toNumber():Divide(60*60*1000)}

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

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

试试 ${now():format("HH")}