[ 
https://issues.apache.org/jira/browse/CAMEL-10339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15513217#comment-15513217
 ] 

ASF GitHub Bot commented on CAMEL-10339:
----------------------------------------

GitHub user yuruki opened a pull request:

    https://github.com/apache/camel/pull/1186

    CAMEL-10339: Allow date offsets and timezones with Simple language

    https://issues.apache.org/jira/browse/CAMEL-10339

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yuruki/camel camel-simpledate

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1186.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1186
    
----
commit b4f09dafc1c04fdf9515a20f462436a5ff284a4a
Author: Jyrki Ruuskanen <yur...@kotikone.fi>
Date:   2016-09-22T12:47:37Z

    CAMEL-10339: Allow date offsets and timezones with Simple language

----


> 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
>
> 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: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