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

Re: date parsing on "bite-sized tasks" list

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2001-08-21 08:07:20 CEST

On 20 Aug 2001 kfogel@collab.net wrote:

> I'd also love to hear some others' opinions on this, especially non-US
> folks who (presumably) are most often bitten by unreasonable defaults or
> un-useful locale assumptions.
>
> I personally always use DD-MM-YY or DD-MM-YYYY, even though my locale is
> U.S., because I think it's more logical. So how should Subversion behave
> to treat me right? :-)

Let me ventilate my view, hopefully in the angle of a "typcial" Swedish
person.

While we often have no idea at all what date 6/4/2001 means (is it April or
June?), since we usually 1) don't write dates like that in Sweden, 2) often
write days and months in the reversed order to what US people do, 3) wouldn't
know if that was written in the US format or adjusted to us somehow.

As a programmmer, I can't but feel that making the same string mean different
things in different locales is an alarm bell ringing. We would need some odd
flag to switch that off in that case, since I would like to be able to use
command line options with dates in scripts, without bothering about where
(which locales is being used when) the script executes.

I vote for a parser that ignores local but that understands multiple formats,
and that alerts when used with wrong input parameters, as no matter how it is
done a lot of people will enter the day field where the month is assumed and
vice versa.

Anyway, ignore my opinions at will. I've got more of them! ;-)

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:36 2006

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.