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

Re: Date processing should be more flexible

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-07-08 19:41:03 CEST

On Fri, 2005-07-08 at 09:46 +0200, Norbert Unterberg wrote:
> 2005/7/6, Christopher Ness <chris@nesser.org>:
> > I researched the standard and feel that we should relax the requirement
> > to include all digits in the Month and Day fields in our date parser.
> > This only applies for a date with separators (currently dashes).
> I agree here. I should have made it more clear in my previous mail.
> ISO requires the leading zeros, so subversion should use them
> everywhere it *outpus* date and time. But I see no problem in relaxing
> the requirement on the date parser in this single respect.

Agreed, users will want the advantage of ISO8601 sortable strings in the
output from subversion.

I have a patch ready on my machine at home that implements this for
Month, Day and Hours. Minutes didn't seem to make sense to allow
omitting of leading zeros as I've never seen that. I have added some
test cases for these new parsing templates.

Before I publish my second revision of the patch I want to look into
returning more meaningful error messages back to the user upon failed
date inputs.

I'll sleep on it over the weekend and see what I can come up with.
Thanks for the input Norbert.


Wireless Group,
McMaster University
13:34:41 up 1:43, 1 user, load average: 0.52, 0.20, 0.08
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 8 19:43:08 2005

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.