<setHeader headerName="order_creation_date">
<simple resultType="java.lang.String">
${date-with-timezone:now:GMT-5:MM-dd-yyyy HH:mm:ss}
</simple>
</setHeader>
the above code sets the current date with new york time zone in exchange header. I need 24 hours back date-time from current date in exchange header from camel XML
您可以使用简单语言https://github.com/apache/camel/blob/master/core/camel-base/src/main/docs/simple-language.adoc上记录的now-24h
, 请注意最新的Camel版本,所以如果它不起作用,请告诉我们您使用的Camel版本。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.