[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: Alan Shutko <ats_at_acm.org>
Date: 2001-08-20 20:36:34 CEST

"C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu> writes:

> You're not paying attention. =) The locale information is used for both
> input and output (see 'man strptime' for example).

strptime is extremely limited, since it only handles whatever it's
been told to. It assumes a "one format for input, one format for
output" mode. As a user, you may want to use "yesterday",
"2000-12-32", 12-June-2001, and other things in the same command
line.

The problem with using LC_TIME is that you may want the system to
interpret [0-9][0-9][/-][0-9][0-9][/-][0-9][0-9][0-9][0-9] on entry as
MM/DD/YYYY, but see YYYY-MM-DD in output. How do you specify that
with LC_TIME? Furthermore, how do you specify the formatting at all
with LC_TIME, other than finding a locale that happens to do what you
want?

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
Nice guys don't finish nice.
---------------------------------------------------------------------
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.