Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 45901 invoked from network); 27 Sep 2004 04:45:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 04:45:36 -0000 Received: (qmail 66732 invoked by uid 500); 27 Sep 2004 04:45:32 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 66602 invoked by uid 500); 27 Sep 2004 04:45:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 66586 invoked by uid 99); 27 Sep 2004 04:45:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of flamefew@gmail.com designates 64.233.170.202 as permitted sender) Received: from [64.233.170.202] (HELO mproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 26 Sep 2004 21:45:31 -0700 Received: by mproxy.gmail.com with SMTP id 79so1703774rnl for ; Sun, 26 Sep 2004 21:45:29 -0700 (PDT) Received: by 10.38.78.79 with SMTP id a79mr1702815rnb; Sun, 26 Sep 2004 21:45:28 -0700 (PDT) Received: by 10.38.164.33 with HTTP; Sun, 26 Sep 2004 21:45:28 -0700 (PDT) Message-ID: <31cc373604092621453b197666@mail.gmail.com> Date: Mon, 27 Sep 2004 00:45:28 -0400 From: Henri Yandell Reply-To: Henri Yandell To: Jakarta Commons Developers List Subject: [lang] DurationFormat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've managed to do a fair bit more on DurationFormat. Should be more accurate. One question is how to handle the following request when the duration is 4 years: DurationFormatUtils.format(time, "M") Should it return 0, or 48? Currently it's implemented to return 48, ie) it grows the value with the unrequested entry. Hen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org