[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: the @ syntax - date format

From: Glenn A. Thompson <gthompson_at_cdr.net>
Date: 2002-04-09 16:05:16 CEST

Hey:
Whoops, I sent my previous post direct to you.
It has a "parse" method that returns a Date object that can be used to
construct a Calendar object to get /set any date members you need.
If you are looking for something that can recognize and parse several different
formats in one method call, it doesn't do that. However, you can construct an
object for every allowed pattern and stuff them in a collection of some sort.
Then you can iterate through them until you get one that doesn't throw a
ParseException. Also, you can define your own custom patterns. I have never
needed to do that so I'm not sure how it works.

Maybe missed the earlier parts of your thread.

What are you trying to do? What version of Java are you running?

Cheers,
Glenn

Hontvari Jozsef wrote:

> Thanks, I have not noticed that SimpleDateFormat can parse too. It seems to
> me that it is not able to parse the wide range of allowed iso formats, but
> it can parse some specific format.
>
>
> > > About the many format in ISO8601: I would not start with implementing
> all
> > > allowed format. Except if there is an existing parser. I have already
> > > searched for a parser in java but I have not found.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 9 16:01:52 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.