commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Caswell" <st...@mungoknotwise.com>
Subject Re: [lang] DateUtils.parseCVS
Date Wed, 07 Jul 2004 10:16:39 GMT
That does make things a little clearer. Perhaps it should be it's own
class, with a parse and a format method, a la SimpleDateFormat.

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

-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message