Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 42191 invoked from network); 7 Jul 2004 02:08:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jul 2004 02:08:43 -0000 Received: (qmail 66046 invoked by uid 500); 7 Jul 2004 02:09:00 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 65943 invoked by uid 500); 7 Jul 2004 02:08:59 -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 65923 invoked by uid 99); 7 Jul 2004 02:08:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [64.253.103.118] (HELO orinoco.flamefew.net) (64.253.103.118) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 06 Jul 2004 19:08:57 -0700 Received: by orinoco.flamefew.net (Postfix on Linux (i386), from userid 500) id 0082B5A678; Tue, 6 Jul 2004 22:08:20 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by orinoco.flamefew.net (Postfix on Linux (i386)) with ESMTP id EBD384E31A for ; Tue, 6 Jul 2004 22:08:20 -0400 (EDT) Date: Tue, 6 Jul 2004 22:08:20 -0400 (EDT) From: Henri Yandell X-X-Sender: hen@orinoco.flamefew.net To: Jakarta Commons Developers List Subject: Re: [lang] DateUtils.parseCVS In-Reply-To: <40EB58B1.7000903@lokitech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ahh. I like the yesterday etc part, but name definitely needs to change. Also I would want a formatter for it (somehow) so we can turn a Date into 'yesterday', '9 days ago' etc. Hen On Tue, 6 Jul 2004, Serge Knystautas wrote: > Gary Gregory wrote: > > I am not that crazy with anything of the form "parseProduct". What if > > there was, or surely going to be 2, then 10 such methods for CVS. Then a > > CvsUtils or some such class would be better. Does this belongs in a > > separate class if not in the sandbox? > > Sorry for not jumping into this thread earlier. The DateUtils is my > submission, so I should probably explain parseCVS... > > It does NOT parse any dates from CVS, so it isn't related to ant or any > other tool. From using CVS, you can checkout code as of "yesterday", "a > week ago", or "last Thursday." CVS parses this human date expression > and calculates that date for you. That is the behavior I was trying to > emulate... support a more human readable date parser. It's not a great > name, but CVS was the language parsing rule I was based on. > > I've got no special urge to keep it in lang, if others do not want. > > -- > Serge Knystautas > Lokitech >>> software . strategy . design >> http://www.lokitech.com > p. 301.656.5501 > e. sergek@lokitech.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org