Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 36360 invoked from network); 21 Apr 2010 08:05:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 08:05:42 -0000 Received: (qmail 79100 invoked by uid 500); 21 Apr 2010 08:05:42 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 78958 invoked by uid 500); 21 Apr 2010 08:05:39 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 78949 invoked by uid 500); 21 Apr 2010 08:05:38 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 78945 invoked by uid 99); 21 Apr 2010 08:05:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 08:05:38 +0000 X-ASF-Spam-Status: No, hits=-1322.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 08:05:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3L85GYc024292 for ; Wed, 21 Apr 2010 08:05:16 GMT Message-ID: <8822788.321271837116400.JavaMail.jira@thor> Date: Wed, 21 Apr 2010 04:05:16 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2631) Add time millis converter which can convert from String to long In-Reply-To: <9987794.811270974103671.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58999#action_58999 ] Claus Ibsen commented on CAMEL-2631: ------------------------------------ Ah I was a bit misleading. The Void.TYPE thingy only applies for @FallbackTypeConverters, where you can indicate that you do not know how to convert that particular type mapping combo. So in our case as its a real type converter you HAVE to convert to a long to be returned. So if you get "444" as input, then output should be a 444 long value. This is missing. And add a test for that also. On a side note. I wonder if we should allow different abbreviations - h | H | hour | Hour | hours | Hours - m | M | min | Min | minute | Minute | minutes | Minutes - s | S | sec | Sec | second | Second | seconds | Seconds Maybe it improves readability {code} 3hours2minutes1second 15sec 5min 4min2sec {code} > Add time millis converter which can convert from String to long > --------------------------------------------------------------- > > Key: CAMEL-2631 > URL: https://issues.apache.org/activemq/browse/CAMEL-2631 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Ashwin Karpe > Priority: Minor > Attachments: time-pattern-converter-patch2.diff > > > Its currently a bit annoying to set a delay by millis and if you need, like 1 hour 30 min period. What is this in millis? > We should add a TypeConverter for that which has a String notation such as: > {code} > 1h30m > 3h45m25s > 10m > 15m20s > 30s > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.