[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: Hontvari Jozsef <hontvari_at_solware.com>
Date: 2002-04-09 18:29:00 CEST

I only mentioned ISO date parsing in java as an example, it is not directly
related to subversion. I use a few iso formats for internal storage and
display, it was not necessary until now to input an iso date from the user.
However this will be required in subversion, so it would be nice - but not
necessary - if subversion could understand more iso format.

----- Original Message -----
From: "Glenn A. Thompson" <gthompson@cdr.net>
To: "Subversion Dev list" <dev@subversion.tigris.org>
Sent: Tuesday, April 09, 2002 3:05 PM
Subject: Re: the @ syntax - date format

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 9 17:36:19 2002

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