[ https://issues.apache.org/jira/browse/CAMEL-10339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15525268#comment-15525268 ]
ASF GitHub Bot commented on CAMEL-10339: ---------------------------------------- Github user yuruki closed the pull request at: https://github.com/apache/camel/pull/1186 > 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 > Assignee: Claus Ibsen > 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)