[ 
https://issues.apache.org/jira/browse/CAMEL-10339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-10339:
--------------------------------
    Fix Version/s: 2.18.0

> Allow date offsets and timezones with Simple language
> -----------------------------------------------------
>
>                 Key: CAMEL-10339
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10339
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Jyrki Ruuskanen
>            Priority: Minor
>             Fix For: 2.18.0
>
>
> Case 1:
> Customer wants us to drop the files with the following naming scheme: 
> prefix-<datetime in UTC>.data. Wouldn't it be nice if we could just say:
> {noformat}
> fileName=prefix-$simple{date-with-timezone:now:UTC:yyyyMMddHHmmss}.data
> {noformat}
> in the producer URI?
> Case 2:
> Customer wants us to clean up files from a destination that are more than 24 
> hours old. With the File component's new filterFile feature we should be able 
> to say:
> {noformat}
> filterFile=${file:modified} < ${date:now-24h}
> {noformat}
> in the consumer URI and pull them off the disk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to